cara_anne
02-17-2011, 01:52 AM
Hi, I need help with this and I'm having a hard time describing exactly what I want to do, therefore can't figure out the search terms I'd use to find this code on the web.
Basically, I have an image gallery on my website and I'm using fake DIV frames to display the images. I have about 250 images each with their own HTML page, 1.html-250.html. I don't want the "frame" that displays the image page to scroll, because it looks sloppy and in most cases it will not be needed. However, if viewed on a very small screen (such as a tiny netbook, esp. if their browser has a lot of toolbars) a few of the large images will be cut off. Also, in some cases I may want to add detail shots to the image page.
Because of this I wanted to add an option to view each page in a pop-up; the problem is editing all of these 250+ image pages with an individual link is going to be a pain. I am wondering if there is a way, that instead of creating a pop-up link that looks like this for example:
<a href="219.html" onclick="NewWindow(this.href,'mywin','800','800','yes','center');return false" onfocus="this.blur()">
I could create something that looks like this
<a href="some kind of javascript code that automatically recognizes the URL of the page it is on? is that possible?" onclick="NewWindow(this.href,'mywin','800','800','yes','center');return false" onfocus="this.blur()">
Am I explaining this well? Does this make sense? Any help is appreciated.
Basically, I have an image gallery on my website and I'm using fake DIV frames to display the images. I have about 250 images each with their own HTML page, 1.html-250.html. I don't want the "frame" that displays the image page to scroll, because it looks sloppy and in most cases it will not be needed. However, if viewed on a very small screen (such as a tiny netbook, esp. if their browser has a lot of toolbars) a few of the large images will be cut off. Also, in some cases I may want to add detail shots to the image page.
Because of this I wanted to add an option to view each page in a pop-up; the problem is editing all of these 250+ image pages with an individual link is going to be a pain. I am wondering if there is a way, that instead of creating a pop-up link that looks like this for example:
<a href="219.html" onclick="NewWindow(this.href,'mywin','800','800','yes','center');return false" onfocus="this.blur()">
I could create something that looks like this
<a href="some kind of javascript code that automatically recognizes the URL of the page it is on? is that possible?" onclick="NewWindow(this.href,'mywin','800','800','yes','center');return false" onfocus="this.blur()">
Am I explaining this well? Does this make sense? Any help is appreciated.