Results 1 to 4 of 4

Thread: Floating image script

  1. #1
    Join Date
    Oct 2005
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile Floating image script

    DD floating image script
    http://www.dynamicdrive.com/dynamicindex4/flyimage.htm

    Great script! I love it. I have it working with the fading slideshow and it looks great.

    One question... instead of the images being links can they be used to stop the script? onClick = something something?

  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

    Add this variable to moveobj.js near the top (addition red):

    Code:
    var vmin=2;
    var vmax=5;
    var vr=2;
    var timer1;
    var stop=0;
    Add this to the movechip(chipname) function in moveobj.js (additions red):

    Code:
    function movechip(chipname){
    if (document.getElementById){
    if (stop){
    document.getElementById(chipname).style.display='none'
    return;
    }
    eval("chip="+chipname);
    Use this for your image(s) in the html section on the page itself (from the example code, modify as needed, additions/changes red):

    Code:
    <div id="flyimage1" style="position:absolute; left: -500px; width:47; height:68;">
    <a href="#" onclick="stop=1;return false;"><img src="test.gif" border=0></a></div>
    Last edited by jscheuer1; 10-25-2005 at 10:04 PM.
    - John
    ________________________

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

  3. #3
    Join Date
    Oct 2005
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hey, that's great. I'm at the dentist right now but I'll try it when I get home...

    Thanx!

  4. #4
    Join Date
    Oct 2005
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Perfect! Thanx again.

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
  •