EnjoyNews said the following on 4/18/2006 10:38 AM:
Quote:
I have a popup problem.
I have a script that generates a popup for image viewing.
It has 2 function, and the first is that it automaticly generates the popup
window to the size of the image, and the second is that it closes the popup
window when you click outside of it. |
And if the user has popups blocked?
<URL:
http://www.litotes.demon.co.uk/js_info/pop_ups.html >
Is a much better alternative to popup windows.
Quote:
It is a script I have found on the internet, since I have no experience in
javascript coding. |
Junk it.
Quote:
It works fine, but the site won't go through a w3c validation. |
It doesn't "work fine" though.
Quote:
In the script there are some body, title, head tag's which the validation
won't exept.
It looks like it can't see that it is inside a script, and think it's a body
tag that is suddently in the middle of the site, which it ofcause won't
exept. |
Put it an external file then. The validator doesn't check those
Quote:
So I need a little help with this one.
Or maybe if it's an older script, and someone knows a better and newer one
that can do the job. |
See above. It is not only old but it's pretty useless and poorly written.
--
Randy
comp.lang.javascript FAQ -
http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices -
http://www.JavascriptToolbox.com/bestpractices/