...

View Full Version : Myspace pop up box



MathExpert
06-15-2007, 07:40 PM
ok, on myspace I am trying to make a pop up box. I have done it before but some reason it wont let me do it. I would have wrote down what i typed in at myspace but i acciddently deleted it instead od cuting it. I want a comment box to pop up when you go to my site that says, "Welcome to my Myspace." if the click ok, then i want another comment box to pop up saying "Thank you for pressing ok.." then they can press ok or cancel and it goes away. But if they press cancel on the first pop up box then i want a comment box to say "Why did you press cancel? Did you not want to press ok? Well now you have to start ALL over and do it again." Then weither they press ok or cancel it start them all over again.


Can somebody help me make this?:D

whizard
06-15-2007, 08:22 PM
function box1()
{
var response = confirm("Welcome to MySpace");
return response;
}

function box2(response)
{
if(response)
{
alert("Thank you for clicking OK");
var tryAgain = false;
}
else
{
alert("Why did you press cancel? Did you not want to press ok? Well now you have to start ALL over and do it again.");
var tryAgain = true;
}
return tryAgain;
}

function beAnnoying()
{
while(1=1)
{
var captureResponse = box1();
var tryAgain = box2(captureResponse);
if(!tryAgain)
{
break;
}
}
}
body.onload(beAnnoying());


Not tested, so see if it works....

HTH
Dan

A1ien51
06-15-2007, 09:04 PM
MySpace does not allow JavaScript so I doubt you did it before on there.

Eric

MathExpert
06-16-2007, 03:15 PM
ok lol, i just checked that out. They dont allow it any more..And yes i did use javascript on there before. Thx for help though



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum