View Full Version : Pop ups!
DJ Will 07-14-2003, 10:34 AM I need to make pop-up windows appear from a link.
But the stuff on pop-ups on the lissaexplains pages don't work for me for some reason. Could someboady gimme a hand please?
Also, how do i make links that go to another website from my site, appear in a whole new window???
Thanks.
Sheila 07-14-2003, 10:40 AM For your second question....
This opens in a new window.... <a href="your link" target="_blank">Your Link Name</a>
This opens in a window that you already have open..... <a href="your link" target="_new">Your Link Name</a>
This opens fully in the same window..... <a href="your link" target="_top">Your Link Name</a>
angelivion 07-14-2003, 10:41 AM about your pop-up code.. could you post it up here?
MaGiCSuN 07-14-2003, 12:44 PM <script language="javascript">
//<!--
function popup()
{ window.open ("YourURLgoesHere.html","popup","width=400,height=400,location=0,menubar=0,resizabl e=0,scrollbars=0,status=0,titlebar=1,toolbar=0") }
-->
</script>
that belongs between the <head> and </head>
then this links is for the text link to open the pop-up
<a href="javascript:popup()">Click here for popup window"</a>
the red parts should always be named the same, otherwise the pop-up will not work. Also ifyou use more then one of these codes, the rest parts should be named different from each pop-up. So 3 above should be named the same, but when you got another pop-up the other 3 red parts shoujld be named different then the ones i made red above.
Love,
Mirna
DJ Will 07-15-2003, 03:38 AM :-S
Ok, i have the pop-upetc working. but i don't want it to have the bar at the top etc. how can i make it so it's just a pop-up with a scrollbar and absolutely nothing else?
sebluver 07-15-2003, 03:43 AM Where it says titlebar="1", change that to titlebar="0"
Heh. Hope that helps.
DJ Will 07-15-2003, 04:04 AM Still not working !
this is what i have:
<script language="javascript">
//<!--
function popup()
{ window.open ("rants.html","popup"," width=400,height=400,loca
tion="0",menubar="0",resizabl
e="0",scrollbars="1",status="0"
,titlebar="0",toolbar="0") }
-->
And where the link goes I have:
<a href=" rants.html"> old rants </a>
Can anybody see what I've done wrong with this?
Geekette 07-15-2003, 04:17 AM Hmmm ... try this:
<A href="rants.html" OnClick="window.open('rants.html','pop_window','height=400, width=400,resizable=no');return false;"> old rants </a>
I also have a script somewhere to center the pop-up on the screen...
DJ Will 07-15-2003, 04:20 AM Woot! thanks that should help.
also, could you gimme the script to center it?
that'd be great. thanks heaps!
Geekette 07-15-2003, 04:25 AM You're very welcome. You can find the script for the centered pop-up here: http://javascript.internet.com/navigation/centered-popup.html
DJ Will 07-15-2003, 04:27 AM Arghh!
It still has the annoying bar at the top of the screen! arghh!
Geekette 07-15-2003, 04:30 AM Oooh, the bar at the top! I think that the only way to get rid of that is to use a chromeless window.
DJ Will 07-15-2003, 04:32 AM Oooooh!
yay, i'm one step closer to achieving my goal.
so...uh...geekette...??
any ideas??
Geekette 07-15-2003, 04:40 AM Go here to learn how to set up a chromeless window: http://www.dhtmlshock.com/window-scripts/Chromeless/default.asp
It's really a lot of work just to get a window without the top bar. Personally, I'd just deal with it.
MaGiCSuN 07-15-2003, 04:34 PM a pop-up has a bar because otherwise people can't move it from place to place :) It's just a standard thing that pop-ups have.
DJ Will 07-17-2003, 08:40 AM My friend has a pop-up without the bar at the top.
go to her 'recent ramblings' (http://www.rottonpear.tk)
I mean the bar that you write web URLs in..you know the URL bar thing?
anyway...help me. i tried chromeless windows but can't seem to get them to work either.
|