PDA

View Full Version : Clicking a like opens a new window



Fear_It
October 6th, 2005, 10:12
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 :o

Thanks

- Dan
October 6th, 2005, 10:51
Hello I think....


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

Fear_It
October 6th, 2005, 10:59
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

- Dan
October 6th, 2005, 11:37
You can.. :)


<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 ^^

Skribblez
October 8th, 2005, 06:38
I wouldn't recommend using the height and width tags, if improperly configured it can reduce the quality of your image.

Try this:


<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.

themoose
October 10th, 2005, 13:56
does anybody know how to do it so it opens in a new 'tab' in firefox?

nameslave
October 17th, 2005, 07:01
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. :)

JoeRiker
October 17th, 2005, 10:05
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', '');">