PDA

View Full Version : enable a pop up



asprilla
03-16-2012, 05:31 PM
hello,
i want to load a pop up on this page
can anyone tell me how to do it
here is the direct link to page
its an image link and i want to load a pop up on this image link
how do i do this
http://myxxximage.cu.cc/images/arsenalfoo.jpg

keyboard
03-16-2012, 08:00 PM
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<META content="text/html; charset=windows-1252" http-equiv=Content-Type>
<SCRIPT TYPE="text/javascript">
function popup() {
window.open('anotherpage.html', 'anotherpage', 'width=400, height=200, scrollbars=yes');
}
</SCRIPT>
</HEAD>
<BODY>
<IMG src="http://myxxximage.cu.cc/images/arsenalfoo.jpg" width="194" height="259" onclick="popup();">
</BODY>
</HTML>


anotherpage.html is the name of the file to be opened in the new popup window. anotherpage is the name of that window.
To see it in action, just save what I posted and click on the image.

asprilla
03-17-2012, 06:36 AM
hello keyboard1333
thanks for ur reply
but this is not what i want, i have a folder on my server called /images.
in this folder there is many images, i want when i place any image link on my browser a pop in should automatically appear.
ex: http://myxxximage.cu.cc/images/arsenalfoo.jpg
if i place this link on my browser, the image should load together with a pop in.
if i place any image ex: http://myxxximage.cu.cc/images/filename.jpg, the image should load together with a pop in.

keyboard
03-17-2012, 08:48 AM
I'm sorry but I can't quite understand you.
What do you mean by pop-up?
Is the image in the popup?
Does the popup come when you hover or click the image?

Please just try to explain it a bit more.
Keyboard1333