 |
|
 |
View previous topic :: View next topic |
Author |
Topic : "I need HTML help please." |
jasonN member
Member # Joined: 12 Jan 2000 Posts: 842 Location: Sydney Australia
|
Posted: Thu Mar 09, 2000 12:31 am |
|
 |
Ok, I need to know how to get a link to open up one of those banner windows. In my site redesign I want my gallery images to open in a that little popup window, NOT a normal browser window. Get me? But I'm unsure of how to do it. Could someone tell me and point me in the right direction (a link to a help site perhaps?) I could search the net trying to find out, but I'm feeling lazy
Thanks guys and gals
------------------
-Jason :)
JasonArt
ICQ: 24680551
|
|
Back to top |
|
Oscar Alexander member
Member # Joined: 21 Dec 1999 Posts: 295 Location: Amersfoort, the Netherlands
|
Posted: Thu Mar 09, 2000 1:03 am |
|
 |
This should do fine
<a href="javascript:window.open('pic.jpg', 'window_title', 'height=x,width=x');"><img tag></a>
|
|
Back to top |
|
mattiasnoren junior member
Member # Joined: 03 Feb 2000 Posts: 8 Location: Alings�s, Sweden
|
Posted: Thu Mar 09, 2000 2:56 am |
|
 |
I hate pop-up Windows!!!! |
|
Back to top |
|
Gecko member
Member # Joined: 07 Mar 2000 Posts: 876 Location: Finland
|
Posted: Thu Mar 09, 2000 7:31 am |
|
 |
Hi. This might be of some help:
<HTML>
<HEAD>
<SCRIPT language="JavaScript">
<!-- hide
// open new window
function openWindow(url, name, t,l,s,m,r, w, h)
{
popupWin = window.open(url, name, 'toolbar='+ t + ',location=' + l + ',scrollbars=' + s +
',menubars=' + m + ',resizable=' + r + ',width=' + w + ',height=' + h);
}
// done hiding -->
</SCRIPT>
</HEAD>
<BODY>
<a href="javascript :openWindow('filename.html','new',0,0,0,0,0,640,480)">Open</A>
</BODY>
</HTML>
There's controls for all the little stuff like toolbars and such, replace zeros with ones if needed.
[This message has been edited by Gecko (edited March 09, 2000).]
[This message has been edited by Gecko (edited March 09, 2000).] |
|
Back to top |
|
nicole member
Member # Joined: 08 Dec 1999 Posts: 90 Location: CA, USA
|
Posted: Thu Mar 09, 2000 2:27 pm |
|
 |
You can also go to http://www.htmlgoodies.com
They've got the browser script PLUS a lot more! woohoo!
The specific link for the new window stuff is : http://www.htmlgoodies.com/primers/jsp/hgjsp_11.html
btw popup windows ROCK! damnit.
------------------
That which does not kill us makes us stranger.
[This message has been edited by nicole (edited March 09, 2000).] |
|
Back to top |
|
jasonN member
Member # Joined: 12 Jan 2000 Posts: 842 Location: Sydney Australia
|
Posted: Fri Mar 10, 2000 6:02 am |
|
 |
Thanks for your help guys and gals.
I spent about an hour or two fiddling around with code and reading up on the reference Nicole gave me (thank you very much!^_^) and it really helped me out.
Now I'm making two versions of my site an 800 X 600 version and a 1024 X 768
Does that sound alright? Does it cover the majority of web users? I hope so because it's going to be a bitch making my site twice.
------------------
-Jason :)
JasonArt
ICQ: 24680551
|
|
Back to top |
|
Queeg junior member
Member # Joined: 05 Feb 2000 Posts: 8 Location: Holland
|
Posted: Fri Mar 10, 2000 1:34 pm |
|
 |
A friendlier way of doing this would be:
code:
<a href="image.jpg" onClick="window.open('image.jpg','_blank',
'width=300,height=400'); return false;">open image</a>
This way, you can still right-click the link and choose "Save target as...", or drag the link to another window, etc.
------------------
[ mv ] - [ http://i.am/mv ] - [ http://i.am/bald ]
[This message has been edited by Queeg (edited March 10, 2000).] |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
Powered by phpBB © 2005 phpBB Group
|