PDA

View Full Version : code for chromeless window with an image



pascalevdb
01-15-2010, 04:26 AM
I have an existing image. I want to link it to another page using a chrome-less window. I am thinking of using this window:
http://www.dynamicdrive.com/dynamicindex8/popwin.htm

How do I change the code so I can use my image to link the window to (instead of to text)

Im not very good at code, so layman's terms are appreciated.

Thanks in advance.

X96 Web Design
01-15-2010, 05:25 AM
I believe chromeless popup windows only work in IE6, if that's what you're talking about.

A great alternative is inline-javascript-powered "windows" like FancyBox (http://fancybox.net/) and Facebox (http://famspam.com/facebox/).

Cheers,
X96

pascalevdb
01-15-2010, 05:32 AM
humm, I don't think that's what I want.

1. I have an image (jpeg) -- I want to click on it and it to open in a browser with no URL address or navigation. A really simply browser that can be resized. I have found several of these, but the code only comes with text being the link.

I hope this makes sense -- Let me know if you need more details.

X96 Web Design
01-15-2010, 07:04 AM
Ohh... Okay...

To link an image, wrap the <IMG> tag in an <A> tag... Like so:

<a href="#"><img src="image.jpg" alt="" /></a>

Hope this helps...

// X96 \\

pascalevdb
01-15-2010, 11:04 PM
I am so lame with code :(
could someone please tell me were to put the code <IMG> code -- here is the existing code. Again, I want to use an image to link to, not words:

<a href="http://workoutsondemand.com/top_ten_review.html" onclick="NewWindow(this.href,'TopTenReview.com Website Review','600','400','yes','center');return false" onfocus="this.blur()">YourLinkText</a>

thanks in advance!

Pascale

X96 Web Design
01-15-2010, 11:07 PM
We're all lame at some point... ;)

Right here:

<a href="http://workoutsondemand.com/top_ten_review.html" onclick="NewWindow(this.href,'TopTenReview.com Website Review','600','400','yes','center');return false" onfocus="this.blur()">
<img src="YOUR_IMG_URL" alt="ALTERNATE TEXT (in case the image can't be displayed)">
</a>

// X96 \\

pascalevdb
01-16-2010, 03:48 PM
This worked on all browsers EXCEPT IE. Does anyone know why. Here is the URL if you might be so kind to take a look

http://workoutsondemand.com/default_top_ten.htm

to see window, click on the long purple banner near top of page "Ranked 2010 Top Ten........"

Thanks for your help in advance.