Sijun Forums Forum Index
Log in to check your private messages
My Profile Search Who's Online Member List FAQ Register Login Sijun Forums Forum Index

This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
   Sijun Forums Forum Index >> Archive : Sep99 - Dec00
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

PostPosted: Thu Mar 09, 2000 12:31 am     Reply with quote
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
View user's profile Send private message Visit poster's website
Oscar Alexander
member


Member #
Joined: 21 Dec 1999
Posts: 295
Location: Amersfoort, the Netherlands

PostPosted: Thu Mar 09, 2000 1:03 am     Reply with quote
This should do fine

<a href="javascript:window.open('pic.jpg', 'window_title', 'height=x,width=x');"><img tag></a>

Back to top
View user's profile Send private message Send e-mail Visit poster's website
mattiasnoren
junior member


Member #
Joined: 03 Feb 2000
Posts: 8
Location: Alings�s, Sweden

PostPosted: Thu Mar 09, 2000 2:56 am     Reply with quote
I hate pop-up Windows!!!!
Back to top
View user's profile Send private message Send e-mail
Gecko
member


Member #
Joined: 07 Mar 2000
Posts: 876
Location: Finland

PostPosted: Thu Mar 09, 2000 7:31 am     Reply with quote
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
View user's profile Send private message Send e-mail Visit poster's website
nicole
member


Member #
Joined: 08 Dec 1999
Posts: 90
Location: CA, USA

PostPosted: Thu Mar 09, 2000 2:27 pm     Reply with quote
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
View user's profile Send private message Send e-mail Visit poster's website
jasonN
member


Member #
Joined: 12 Jan 2000
Posts: 842
Location: Sydney Australia

PostPosted: Fri Mar 10, 2000 6:02 am     Reply with quote
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
View user's profile Send private message Visit poster's website
Queeg
junior member


Member #
Joined: 05 Feb 2000
Posts: 8
Location: Holland

PostPosted: Fri Mar 10, 2000 1:34 pm     Reply with quote
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
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Sijun Forums Forum Index -> Archive : Sep99 - Dec00 All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
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