SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    Mar 2007
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Image Swap / Popups?

    Does anyone have a script for this?

    Can it be done?

  2. #2
    code ninja hamstu's Avatar
    Join Date
    Nov 2002
    Location
    Montréal, Canada
    Posts
    375
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'd love to help you, but please explain what exactly you want to do. Your title is vague at best.

  3. #3
    SitePoint Member
    Join Date
    Mar 2007
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Basically, I have an image I want to make a rollover, but when you click on it, I want it to open a new window.

    The rollover is working fine, I just cant figure out how to have both a rollover and a popup together.

  4. #4
    code ninja hamstu's Avatar
    Join Date
    Nov 2002
    Location
    Montréal, Canada
    Posts
    375
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well, popups aren't too hard to do.

    Check out this article:
    http://www.quirksmode.org/js/popup.html

    If you're image isn't wrapped in an <a> tag, then you can also do the popup with onclick.
    Code:
    <img src="..." onclick="javascript:popup();" ...>


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
  •