View Full Version : Non Javascript Popups
GrandMan
03-12-2006, 06:05 PM
Hey everyone,
For my new website I am in need of Non Javascript Popups. The reason why is that I use a javascript gallery which allow one to put in an onimageclick link, but it can't contain any html code, just, for example, http://www.google.com/test.php .
So basically what I need is a link that when followed makes a popup of the image in larger format appear. Any ideas?
Laurence
aluminumpork
03-12-2006, 07:13 PM
Umm, well your link is bad, and it seems strange that you would be at google.com. But either way, I'm a little confused as to what you are talking about exactly.
If you want to pop a new window without javascript, you can do:
<a href="link.html" target="_blank">New Window</a>
But that won't allow you to have control over any attributes of the new window.
However, by your description, it seems that you're using a pre-made Gallery script that allows to enter code for an event handler, and when you say that it doesn't allow HTML code, it's because it's looking for Javascript to do what you want.
And example of this would be like:
<a href="#" onClick="window.open('location.html','Page Title','width=400,height=200')">New Window</a>
The attributes width and height are only a few of the available to control the new window.
Hope this helps.
GrandMan
03-12-2006, 07:23 PM
The link was an example of the formatting needed. Here is my site.
http://www.theskatepress.com/profile.php
Here is the code I'm talking about.
var dynimages=new Array()
dynimages[0]=["../images/photo1.jpg", "index.php"]
dynimages[1]=["../images/photo2.jpg", "http://www.yahoo.com"]
dynimages[2]=["photo3.jpg", "http://www.google.com"]
vBulletin® v3.6.7, Copyright ©2000-2009, Jelsoft Enterprises Ltd.