View Full Version : Opening in a new window...
lMattz
23-02-2005, 04:16 PM
Does anyone no how to make it so when u click on the link it opens a new window with my radio in it the size that i choose instead of it being a hole page.
If u no what i am talking about please reply! :D
Thanks
Matt :eusa_hand
Smash-Master
23-02-2005, 04:23 PM
ye i know what u talking about hold on i get it
splintercell!
23-02-2005, 04:25 PM
You need a pop up script go to google and search "Pop up Javascripts"
Smash-Master
23-02-2005, 04:27 PM
i got a better one
put this in the hyper link
javascript:location='index.html';window.open('main .html','characters','height=500,width=800,scrollba rs=no')
change the index.htrml to your main page (index.htm) or what eva and put main.html to the radio link (radio.htm)
lMattz
23-02-2005, 04:38 PM
Tanks Alot Smash!! U Rock!
Smash-Master
23-02-2005, 04:40 PM
i know i do :rolleyes:
lMattz
23-02-2005, 04:44 PM
LOL!
So do i need tags? where would i put the writing the writing and link it mattz.net! lol i no its basic but i am a novice lol.
what would i put for the text and that.
javascript:location='index.html';window.open('main .html','characters','height=500,width=800,scrollba rs=no')
Smash-Master
23-02-2005, 04:59 PM
replace index.html and put index.htm or what eva your home page is do not put www.domain.net it will only be messed up and change main.html to the radio link example:
radio.html
Mentor
23-02-2005, 06:02 PM
It depends what you wnat, His code there will put it in a pop up,
But if you just wnated a link to open in a new window you can do it by simply adding
to your link code
target="_blank"
so it an eg link would be
<a href="URL" target="_blank"> Link text </a>
he wants it to open a certian size though.
iRoss
26-02-2005, 07:25 PM
just change the dimensisons then
Mentor
26-02-2005, 07:39 PM
You mean like?
<a href="#" onclick="Popup=window.open('POP UP URL ','Popup','toolbar=no,location=no,status=no,menuba r=no,scrollbars=yes,resizable=no,width=500,height= 500,left=430,top=23');return false;"> link </a>
Athogh popup blockers will get them so its best to use the normal url caller and a fucntion for the window
aka
<script>
function popup() { window.open(' POP UP URL ','popupname','width=250,height=500,resizable=yes, scrollbars=yes'); }
</script>
and call it by setting the link url popup() for the exsample
eg
<a href="javascript:popup();"> LINK </a>
Want to hide these adverts? Register an account for free!
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.