GFXVoid Graphic Design Forum

Remove Text Formatting
Loading...

» Online Users: 831

0 members and 831 guests
No Members online

» Site Navigation

 > FAQ

» Stats

Members: 35,442
Threads: 103,075
Posts: 826,688
Top Poster: cc.RadillacVIII (7,429)
Welcome to our newest member, Lekelindids
Results 1 to 3 of 3
  1. #1

    Default

    insert the following into you <head> section:

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

    Insert the following into the body portion of your page:

    &#60;script type="text/javascript">

    /***********************************************
    * 3D Spinning Message Script- By Copyright © 2003 Peter Gehrig
    * Website: http://www.24fun.com
    * Script available at/modified by Dynamic Drive (http://www.dynamicdrive.com)
    * This notice must stay intact for use
    ***********************************************/


    // Add as many messages as you like
    var message=new Array("Dynamic Drive", "#1 DHTML site online", "Visit us for free scripts", "Enjoy")

    // 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=(&#33;window.opera && document.compatMode && document.compatMode&#33;="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=mytrue body.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(&#39;strokeid&#39.color=outlinecolor[i_outlinecolor]
    document.getElementById(&#39;fillid&#39.color=fillcolor1[i_fillcolor1]
    document.getElementById(&#39;fillid&#39.color2=fillcolor2[i_fillcolor2]
    if (i_message < message.length) {tick()}
    else {document.getElementById(&#39;textpathid&#39.string=""
    document.getElementById("roofid").style.display="n one" //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(&#39;textpathid&#39.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(&#39;<div id="roofid" style="position:absolute;left:0px;top:0px;width:&# 39;+outerwidth+&#39;px;height:&#39;+outerheight+&# 39;px;overflow:hidden;">&#39
    document.write(&#39;<vval id="tc" style="position:absolute;top:&#39;+postop+&#39;px; left:&#39;+posleft+&#39;px;width:&#39;+innerwidth+ &#39;px;height:&#39;+innerheight+&#39;px">&#39
    document.write(&#39;<v:shadow on="t" opacity="&#39;+strengthopacity+&#39;"/>&#39
    document.write(&#39;<v:stroke id="strokeid" weight="&#39;+strkweight+&#39;pt" color="blue"/>&#39
    document.write(&#39;<v:fill id="fillid" on="True" color="&#39;+fillcolor1[0]+&#39;" color2="&#39;+fillcolor2[0]+&#39;" opacity="&#39;+strengthopacity+&#39;" opacity2="&#39;+strengthopacity+&#39;" type="gradient"/>&#39
    document.write(&#39;<vath textpathok="t"/>&#39
    document.write(&#39;<v:textpath id="textpathid" on="t" id="mytp" style="font-family:&#092;&#39;Arial Black&#092;&#39;; " fitpath="t" string=""/>&#39
    document.write(&#39;</vval></div>&#39
    if (window.attachEvent) //DD added code
    window.attachEvent("onload", changeform) //DD added code
    else
    window.onload=changeform
    }
    </script>

    *NOTE you can change all of the variables inside the above script, also make sure you put the script outside any other tags

  2. #2
    Join Date
    Feb 2005
    Location
    va
    Posts
    29

    Default

    can you so a demo otherwise we can&#39;t tell whether we like it enough to add it

  3. #3
    Join Date
    Mar 2005
    Location
    Rotherham,England
    Posts
    10

    Default

    any previews mate?

Similar Threads

  1. intro
    By unenergizer in forum Introductions
    Replies: 0
    Last Post: 05-01-2006, 12:26 AM
  2. intro
    By j-t in forum Introductions
    Replies: 8
    Last Post: 01-26-2006, 09:23 AM
  3. The intro you never got
    By villian in forum Introductions
    Replies: 9
    Last Post: 08-01-2005, 12:40 PM
  4. intro
    By Lakeside in forum Introductions
    Replies: 3
    Last Post: 03-17-2005, 11:38 AM
  5. Hs:Intro
    By headshock in forum Introductions
    Replies: 1
    Last Post: 03-16-2005, 05:48 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Powered by vBadvanced CMPS v4.1.1