PDA

View Full Version : Java Script help ??


Vanquish+
05-10-2002, 12:37 PM
ok i need 2 scripts .. the first one i need is ..
I want one that makes a gray box to come up [with the little Ok and Cancel buttons] saying Click ok then the gray button to vote and i want it likned to one of my topsites ...

The 2nd one i want is that when they click the enter site image i want my affiliate to pop up ....
plzz help !!!

Dru Lee Parsec
05-10-2002, 02:28 PM
http://javascript.internet.com/messages/confirm-alert.html has a confirm and alert dialog box with OK and Cancel buttons.

I refuse to describe how to construct those annoying pop-up windows. :)

DukeofNukes
05-10-2002, 11:45 PM
I did this as a challenge for my own (feeble) JS skills; I, like Dru, disapprove of popups. Here, however, is what I came up with:




<head>
<script language="JavaScript">
<!--
function popUp(popUp, mySite) {

//opens the popup
window.open(popUp);

//sends the base window to your site
window.location = mySite;
}
//-->
</script>



<body>
Enter here! (javascript:popUp('http://www.affiliatesite.com/','http://www.yoursite.com');)

</body>
</html>
</head>



OK, I fixed it such that it should work now.

Vanquish+
05-11-2002, 07:01 AM
its not thats its a pop up that annoys ... its justa really small pop up until i get enough funding for my site

Vanquish+
05-11-2002, 07:19 AM
it dont work ... i tryed to put an image where you put the enter site .... can anybody else help or can you tell me whats wrong

DukeofNukes
05-11-2002, 01:46 PM
OK, try it again. If you just straight C&Ped it outta here, then modified the URLs, that's what was broken. I forgot to switch off the damn auto-smiley thing, and it changed a "colon capital P" into a "stick your tongue out" smiley that doesn't C&P properly. Should work now.