Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...html/dhtml/vml helphtml/dhtml/vml help
Previous
 
Next
New Post
3/9/2007 11:12 AM
 

i am trying to put a short entry vml animtion on my basic DNN site.

I am hosted through godaddy so i do not have the latest and greatest version, I am running 4.0.2

what I asking how do i go about doing this:

I need to put this below the <head> section

<xml:namespace ns="urn:schemas-microsoft-com:vml" prefix="v"/>
<style type="text/css">
v\:* { behavior: url(#default#VML); }
</style>

 

 

and this into the <BODY> section  OUTSIDE any other container tags (ie: <table>, <div> etc) :

 

<script type="text/javascript">


// Add as many messages as you like
var message=new Array("Welcome", "Stay Awhile", "Test")

// Set the outline-color. Add as many colors as you like
var outlinecolor=new Array("black", "black")

// Set fillcolors 1. Add as many colors as you like
var fillcolor1=new Array("gray", "green", "white", "green")

// Set fillcolors 2. Add as many colors as you like
var fillcolor2=new Array("blue", "olive", "black", "lime")

// Set the letter marking the circle
var circlemark=new Array("-")

// Set the width of the outline
var strkweight=2

// Set the waiting time between the messages (seconds)
var pause=2

// Set the strength of the opacity (transparency of letters)
var strengthopacity="60%"

// Set the size of the circle (values range from 0.1 to 1)
var circlesize=0.5

// Always keep messages in view even if page is scrolled? (DD added option)
var keepinview="yes"

// Do not edit below this line

mytruebody=(!window.opera && document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body //Dynamicdrive added object

var outerwidth=mytruebody.clientWidth
var outerheight=mytruebody.clientHeight

var innerwidth=Math.floor(circlesize*outerwidth)
var innerheight=Math.floor(circlesize*outerheight)

var posleft=(outerwidth-innerwidth)/2
var postop=(outerheight-innerheight)/2

var path=new Array()
var i_message=0
var i_outlinecolor=0
var i_fillcolor1=0
var i_fillcolor2=0
var i_messagelength=0
var longestmessage=0
pause*=1000

var ie=document.getElementById&&document.all?1:0

for (i=0;i<=message.length-1;i++) {
 if (message[i].length>longestmessage) {
  longestmessage=message[i].length
 }
 longestmessage+=4
}

for (i=0;i<=message.length-1;i++) {

 var emptyspace=""
 var i_emptyspace=(longestmessage-message[i].length)/2
 for (ii=0;ii<=i_emptyspace;ii++) {
  emptyspace+=circlemark
 }
 message[i]=emptyspace+" "+message[i]+" "+emptyspace
}

function changeform() {
 if (keepinview=="yes") //DD added
 document.getElementById("roofid").style.top=mytruebody.scrollTop //DD added
 if (i_outlinecolor >= outlinecolor.length) {i_outlinecolor=0}
 if (i_fillcolor1 >= fillcolor1.length) {i_fillcolor1=0}
 if (i_fillcolor2 >= fillcolor2.length) {i_fillcolor2=0}
 document.getElementById('strokeid').color=outlinecolor[i_outlinecolor]
 document.getElementById('fillid').color=fillcolor1[i_fillcolor1]
 document.getElementById('fillid').color2=fillcolor2[i_fillcolor2]
 if (i_message < message.length) {tick()}
 else {document.getElementById('textpathid').string=""
 document.getElementById("roofid").style.display="none" //DD added
 }
}

function tick() {
 if (i_messagelength <= message[i_message].length) {
  var messagestringend=""
  var messagestring=message[i_message].substring(0, i_messagelength)+messagestringend
  document.getElementById('textpathid').string=messagestring
  var timer=setTimeout("tick()",50)
  i_messagelength++
 }
 else {
  clearTimeout(timer)
  i_messagelength=0
  i_message++
  i_outlinecolor++ 
  i_fillcolor1++ 
  i_fillcolor2++ 
  var timer=setTimeout("changeform()",pause)
 }
 
}

if (ie) {
 document.write('<div id="roofid" style="position:absolute;left:0px;top:0px;width:'+outerwidth+'px;height:'+outerheight+'px;overflow:hidden;">')
 document.write('<v:oval id="tc" style="position:absolute;top:'+postop+'px;left:'+posleft+'px;width:'+innerwidth+'px;height:'+innerheight+'px">')
 document.write('<v:shadow on="t" opacity="'+strengthopacity+'"/>')
 document.write('<v:stroke id="strokeid" weight="'+strkweight+'pt" color="blue"/>')
 document.write('<v:fill id="fillid" on="True" color="'+fillcolor1[0]+'" color2="'+fillcolor2[0]+'" opacity="'+strengthopacity+'" opacity2="'+strengthopacity+'" type="gradient"/>')
 document.write('<v:path textpathok="t"/>')
 document.write('<v:textpath id="textpathid" on="t" id="mytp" style="font-family:\'Arial Black\'; " fitpath="t" string=""/>')
 document.write('</v:oval></div>')
 if (window.attachEvent) //DD added code
 window.attachEvent("onload", changeform) //DD added code
 else
 window.onload=changeform
}
</script>

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...html/dhtml/vml helphtml/dhtml/vml help


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out