SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast jabroni76's Avatar
    Join Date
    Dec 2003
    Location
    Gawgia
    Posts
    53
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    stupid javascript question...

    Hello everyone.. I feel ashamed asking this being quite fluent in javascript, but atlast, I resort to this site.

    Using Photoshop/Imageready, I created several slices/rollovers. I want to, when you click on a certian rollover, for the windo to open in a new one, with specific demensions..

    here is the code:

    Code:
    <A HREF="neck.html"
    				ONMOUSEOVER="window.status='neck'; changeImages('parris_03', 'images/parris_03-neck_over.gif', 'neck', 'images/neck-over.gif', 'parris_07', 'images/parris_07-neck_over.gif'); return true;"
    				ONMOUSEOUT="window.status=''; changeImages('parris_03', 'images/parris_03.gif', 'neck', 'images/neck.gif', 'parris_07', 'images/parris_07.gif'); return true;">
    				<IMG NAME="neck" SRC="images/neck.gif" WIDTH=44 HEIGHT=18 BORDER=0 ALT="neck"></A>
    Thanks in advance!

  2. #2
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,236
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    HTML Code:
    <A HREF="neck.html"
    ONMOUSEOVER="window.status='neck'; changeImages('parris_03', 'images/parris_03-neck_over.gif', 'neck', 'images/neck-over.gif', 'parris_07', 'images/parris_07-neck_over.gif'); return true;"
    ONMOUSEOUT="window.status=''; changeImages('parris_03', 'images/parris_03.gif', 'neck', 'images/neck.gif', 'parris_07', 'images/parris_07.gif'); 
    return true;"
    [b]onclick="window.open(this.href, 'newWin', 'width=200, height=450'); return false;"[/b]
    >
    <IMG NAME="neck" SRC="images/neck.gif" WIDTH=44 HEIGHT=18 BORDER=0 ALT="neck">
    </A>
    Note the part in bold. Just change the width/height parameters to meet your needs.
    Off Topic:

    That is some messy code! You may want to consider wrapping that all up into some more generic functions and optimizing your code to save your visitors some download time!


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
  •