SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Hybrid View

  1. #1
    HI silver trophy Silverado4x4's Avatar
    Join Date
    Jan 2001
    Location
    USA
    Posts
    953
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    DHTML Floating Ad

    How can I get this DHTML ad to show on the right side and not the left side? (the NetFlix one)

    http://www.jokeuniversity.com/dhtmlad.html

    http://www.jokeuniversity.com/float.js

    Since it requires an X coordinate and the screen resolutions of my visitors are all different, I'm wondering if you could say "put it on the right". I've tried "var xstep=right;" but all that does is sticks it in the upper right hand corner.

    Any ideas?
    Last edited by Silverado4x4; Jan 13, 2002 at 18:05.

  2. #2
    You want what? By when?? Milamber's Avatar
    Join Date
    Jan 2001
    Location
    California
    Posts
    342
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    yeah, you need to find the variable for each browser that will return the witdh of the browser window. Then just subtract the width of the div + 5 ( +5 to div width for padding) to get the image to be on the right.
    -Jeff Minard | jrm.cc - Battlefield 2 Stats

  3. #3
    SitePoint Guru Vincent Puglia's Avatar
    Join Date
    Feb 2000
    Location
    where the World once stood
    Posts
    700
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi silverado4x4,

    Dependent upon your skills, you might be able to cannabilize the "Scrolling Divs" script/tutorial at my site

    Vinny
    Where the World Once Stood
    the blades of grass
    cut me still


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
  •