(Erik) writes:
> I have a page with about 100 links in the form of thumb nails that
> open a small html page. It took a lot of time to define each link and
> I sure do not want to go though that again.
>
> I would like to know if there is a way to make a global script that
> will open any link (thumb nail) that I push on that page in a pop up.
> Remember each pop up is a small html page and not just a photo.
>
> I got some few answers in my last post but none of them worked.
How did they fail?
You can add an onclick event handler to all links on the page (or to
some of them):
---
function click() {
window.open(this.href,this.target,"width=400,heigh t=300,resizable=yes");
}
for (var i=0;i<document.links.length;i++) {
var link = document.links[i];
if ( ... link is a thumbnail link ... ) {
link.onclick = click;
}
}
---
/L
--
Lasse Reichstein Nielsen -
Art D'HTML: <URL:http://www.infimum.dk/HTML/randomArtSplit.html>
'Faith without judgement merely degrades the spirit divine.'