View Full Version : whats the html script for a pop up would be greatful for it and ill give +rep :)
halo-103
15-12-2006, 05:58 PM
as the title says i need a html script for a popup and ill give +rep for the person that tells me :)
thank you :)
Verrou
15-12-2006, 07:38 PM
If you want a popup where you click a button use this:
<form>
<input style="font-size:12px;color:#000000;font-family:verdana;" type=button value="Ok" onClick="alert('Your Message Here');">
</form>
If you want a popup that automatically opens when you enter a page use this:
<SCRIPT LANGUAGE='JAVASCRIPT' TYPE='TEXT/JAVASCRIPT'>
<!--
var popupWindow=null;
function popup(mypage,myname,w,h,pos,infocus){
if (pos == 'random')
{LeftPosition=(screen.width)?Math.floor(Math.rando m()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Mat h.random()*((screen.height-h)-75)):100;}
else
{LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
settings='width='+ w + ',height='+ h + ',top=' + TopPosition + ',left=' + LeftPosition + ',scrollbars=no,location=no,directories=no,status= no,menubar=no,toolbar=no,resizable=no';popupWindow =window.open('',myname,settings);
if(infocus=='front'){popupWindow.focus();popupWind ow.location=mypage;}
if(infocus=='back'){popupWindow.blur();popupWindow .location=mypage;popupWindow.blur();}
}
// -->
</script>
(PUT THIS IN THE HEAD SECTION OF YOUR PAGE.
<body onLoad="popup('http://POPUP URL HERE','Popup Name Here','200','100','center','front');">
AND ADD THAT TO THE <BODY> TAG ON YOUR PAGE (CHANGE HIGHLIGHTED THINGS)
AdamRose
15-12-2006, 07:47 PM
It's not HTML, it's JS.
Impossible to do with HTML I think.
Cixso
15-12-2006, 07:48 PM
It still works on a .html page, so just use it anyway
AdamRose
15-12-2006, 07:48 PM
It still works on a .html page, so just use it anyway
oh my god.
:eusa_wall:eusa_wall:eusa_wall
Cixso
15-12-2006, 07:52 PM
and you want god for...
letisix
15-12-2006, 07:55 PM
<SCRIPT language="JavaScript">alert("TEXT") </SCRIPT>
AdamRose
15-12-2006, 07:55 PM
and you want god for...
you're annoying me to no end.
of course js works on a .html page fgs.
Cixso
15-12-2006, 07:56 PM
I know, I am just saying you can still use it, and i wasnt typing towards you?
AdamRose
15-12-2006, 08:00 PM
I know, I am just saying you can still use it, and i wasnt typing towards you?
yes you was, because you was commenting on my post about it being js.
Cixso
15-12-2006, 08:01 PM
hmm, true, but i was also saying you can still use that, which i was pointing to the thread creator
Agnostic Bear
15-12-2006, 08:03 PM
OR, or, there is an easier way here.
<a href="#" OnClick="window.open('SHOOP DA WOOP','default_window','width=500, height=200, top=100, left=300, scrollbars'); return false;">OMGZA</a>
Replace SHOOP DA WOOP (I'ma firin mah laz0r) with your link :)
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.