46 users online (1 members and 45 guests)  


  Results 1 to 6 of 6
  1. #1
    Kervin's Avatar
    New User

    Status
    Offline
    Join Date
    May 2002
    Location
    Norrath
    Posts
    5

    Need help cleaning this up

    Hope this is the right place to put this up. I use this same signature on other boards. IE brings up an extra window. My intentions are to have a pop-up(non-resizable) without the screen showing the [object].

    Coded as:

    <a href="javascript:window.open('http://www.magelo.com/eq_view_profile.html?num=80612','pop1','status=no,resizable=no ,width=800,height=600')" target="_blank"><img border="0" src="http://personal.atl.bellsouth.net/mco/d/o/donahey/CrucibleSig1.JPG" width="250" height="100"></a>

  2. #2
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    Hi Kervin. Welcome to the forums

    First thing I noticed is that you do not need -

    Code:
    target="_blank"
    in there. It popping up a blank window as well as the desired JS window. Hope that helps, if I have missed the point please post some details.
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

  3. #3
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    Doh. And re-reading your post, I see I did miss the point -

    Try this:

    Code:
    <a href="#" onclick="javascript:window.open
    ('http://www.magelo.com/eq_view_profile.html?num=80612','pop1','status=no,resizable=no ,width=800,height=600')">
    <img border="0" src="http://personal.atl.bellsouth.net/mco/d/o/donahey/CrucibleSig1.JPG" width="250" height="100">
    </a>
    This should work.
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

  4. #4
    Kervin's Avatar
    New User

    Status
    Offline
    Join Date
    May 2002
    Location
    Norrath
    Posts
    5
    Thanks for the quick response.

  5. #5
    Kervin's Avatar
    New User

    Status
    Offline
    Join Date
    May 2002
    Location
    Norrath
    Posts
    5
    Thanks for the help.

    How do I prevent the page from scrolling to top when link is followed? My guess is that it would require something other than ...href="#"...

  6. #6
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    Yup, you could create another anchor, and link to that -

    Code:
    <a name="myAnchor">Any old text</a>
    
    // Then link like this
    
    <a href="#myAnchor"...
    or you could use this -

    Code:
    <a href="javascript:" blah blah...
    the second option is probably better.
    Last edited by QuietDean; 05-12-2002 at 04:17 PM.
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?



Tags for this Thread