Closed Thread
Results 1 to 8 of 8

Thread: Clicking a like opens a new window

  1. #1
    Pro Member Fear_It has disabled reputation
    Join Date
    Apr 2004
    Posts
    290

    Clicking a link opens a new window

    Hello

    Does anyone know how to put a code in the index.html page when some clicks it, it opens a new window and goes the site you put for the target url if you know what i mean?

    Edit: Sorry the title for the topic should be Clicking a link opens a new window. Miss spelled it

    Thanks
    Last edited by Fear_It; October 6th, 2005 at 09:22.

  2. #2
    Pro Member - Dan is an unknown quantity at this point - Dan's Avatar
    Join Date
    Feb 2005
    Location
    Australia
    Posts
    398
    Hello I think....

    Code:
    it use <a href="" target="_blank"> blablab </a>
    Is this you looking for it will open to new window

  3. #3
    Pro Member Fear_It has disabled reputation
    Join Date
    Apr 2004
    Posts
    290
    Is it possible to put an image link in it so when you click the link it will open a new window like the one you gave me above but an image which opens a new window

    Thanks

  4. #4
    Pro Member - Dan is an unknown quantity at this point - Dan's Avatar
    Join Date
    Feb 2005
    Location
    Australia
    Posts
    398
    You can..
    Code:
    <a href="Target to real Image :)" target="_blank"><img src="Your image (thumbnail perhapS) " width="up2u" height="up2u" border="up2u" /></a>
    Hope that's what you want

    Dan ^^

  5. #5
    Pro Member Skribblez is on a distinguished road Skribblez's Avatar
    Join Date
    Sep 2004
    Location
    Sydney, Australia
    Posts
    327
    I wouldn't recommend using the height and width tags, if improperly configured it can reduce the quality of your image.

    Try this:

    Code:
    <a href="http://www.link.com target="_blank"><img src="http://www.image.com/image.jpg border="0"></img></a>
    If you don't put the border="0" tag an ugly blue border will appear as the border of your banner.

  6. #6
    Sup, Recoil here. themoose has a reputation beyond reputethemoose has a reputation beyond reputethemoose has a reputation beyond reputethemoose has a reputation beyond reputethemoose has a reputation beyond reputethemoose has a reputation beyond reputethemoose has a reputation beyond reputethemoose has a reputation beyond reputethemoose has a reputation beyond reputethemoose has a reputation beyond reputethemoose has a reputation beyond repute themoose's Avatar
    Join Date
    Jun 2005
    Location
    Uzbekistan
    Posts
    8,805
    does anybody know how to do it so it opens in a new 'tab' in firefox?

  7. #7
    Senior Member nameslave is an unknown quantity at this point nameslave's Avatar
    Join Date
    Aug 2003
    Location
    Toronto
    Posts
    113
    Quote Originally Posted by CrazyDeveloper
    I wouldn't recommend using the height and width tags, if improperly configured it can reduce the quality of your image.

    If you don't put the border="0" tag an ugly blue border will appear as the border of your banner.
    Yes, border is not really " up to you": set it to anything other than zero looks stupid, except in very rare occasions. However, rendering the wrong height and width is something ANY webmaster (even junior ones) should avoid. And by indicating them in the first place makes your design way much more pro. Just some quick thoughts.
    Get $50 Off with promo code "DAYDREAM" at DreamHost.com

  8. #8
    Junior Member JoeRiker is an unknown quantity at this point
    Join Date
    Oct 2005
    Location
    Serbia & Montenegro
    Posts
    3
    the best way to not bother with borders is to use JS

    <img style="{ cursor:hand }" src="image.jpg" onclick="window.open('image2.jpg', 'newpagename', '');">

Closed Thread

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