Results 1 to 3 of 3

Thread: Help with basic scripting

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

    Talking Help with basic scripting

    Hi. I have an image link in which if i click on it, it enlarges in a popup window by dhtml. I also have an information tag with it as well on mouseover.

    However, I could only get one working at a time. This was because I had two "rel"s for this script below

    <p><a href="http://img384.imageshack.us/img384/9486/autobhzx7.jpg" rel="thumbnail" rel="auto"><img src="http://img124.imageshack.us/img124/5/thumb1wo6.jpg" style="width: 155px; height: 207px" /></a></p>

    Please tell me how to combine rel="thumbnail" rel="auto" so that i could get both of them working! Thanks

  2. #2
    Join Date
    May 2007
    Location
    USA
    Posts
    373
    Thanks
    2
    Thanked 4 Times in 4 Posts

    Default

    I don't think "thumbnail" or "auto" are valid attribute values for rel.

    What you want to do is use the onclick attribute and have it call a JavaScript function capable of making a pop-up window.

    Code:
    <img onclick="window.open('page.html','popwin')" />

  3. #3
    Join Date
    Mar 2006
    Location
    Cleveland, Ohio
    Posts
    574
    Thanks
    6
    Thanked 5 Times in 5 Posts

    Default

    Trinithis, his rel's are correct. How to combine the 2 rel's, I'm not entirely sure. You might want to combine the two javascripts, somehow, into ONE rel...
    Thou com'st in such a questionable shape
    Hamlet, Act 1, Scene 4

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
  •