Results 1 to 3 of 3

Thread: 3D Spinning Message placement

  1. #1
    Join Date
    Mar 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default 3D Spinning Message placement

    1) Script Title: 3D Spinning Message

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici.../circlemsg.htm

    3) Describe problem: Is there a way to place this in a certian spot on a web page, so it is not actually in the center of the page?


    Thank you for your help..

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Yes but, first realize that this is an IE only effect. Now, what you can do is set the width and height of the spinner here (from the script):

    Code:
    // 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
    Like so:

    Code:
    var outerwidth=350
    var outerheight=200
    Also, make sure this is set to no:

    Code:
    // Always keep messages in view even if page is scrolled? (DD added option)
    var keepinview="yes"
    Next, put a division around the script with position relative and with the same dimensions you used for the spinner:

    Code:
    <div style="position:relative;width:350px;height:200px;">
    <script type="text/javascript">
    
    /***********************************************
    * 3D Spinning Message Script- By Copyright (c) 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("Dynam . . .
    
     . . . .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>
    </div>
    Now you can put it wherever you want it in the flow of the page, just as if it were a paragraph.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Mar 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Perfect! Thank you so much!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •