What's new

I need to know how to do this ;-;

Status
Not open for further replies.
qaadka

qaadka

Se7en Elite
Messages
5,384
Reaction score
904
I need to know how to have a web page display the never ending alert things (like on shock sites). Help me please :3
 
iamme

iamme

Getting There
Messages
1,757
Reaction score
466
I'm confused on what youre trying to ask.
 
Styx

Styx

Contributor
Messages
2,736
Reaction score
358
Exactly, like in rick rolls and s*** when you so you can't close it...
You need to make onLoad popups, and just make as many as you want.
So when the page loads, its set to pop up, and if you code a million of them, they'll all show up.
 
qaadka

qaadka

Se7en Elite
Messages
5,384
Reaction score
904
You need to make onLoad popups, and just make as many as you want.
So when the page loads, its set to pop up, and if you code a million of them, they'll all show up.




So how exactly would I do that? =/


 
Styx

Styx

Contributor
Messages
2,736
Reaction score
358
So how exactly would I do that? =/
In the body of your code,
you'll have to put this:
I'm guessing you're using HTML
Code:
onLoad="alert('hello world!')"
Replace hello world with the text you want to display.
Keep all the quotes.
 
qaadka

qaadka

Se7en Elite
Messages
5,384
Reaction score
904
Did you get it working?

Not yet =/ I have the .swf uploaded and I put that in the index.html but it doesn't work :< I'm not good at this s*** though :tongue:
 
Styx

Styx

Contributor
Messages
2,736
Reaction score
358
Not yet =/ I have the .swf uploaded and I put that in the index.html but it doesn't work :< I'm not good at this s*** though :tongue:
Yeah, won't work in a .swf
I think you could also try putting it between the
Code:
<head> and </head>
section of the html, because then it will be loaded first.

EDIT: 777th post :tongue:
 
qaadka

qaadka

Se7en Elite
Messages
5,384
Reaction score
904
Yeah, won't work in a .swf
I think you could also try putting it between the
Code:
<head> and </head>
section of the html, because then it will be loaded first.

EDIT: 777th post :tongue:
It's still not working =/ This is what I have in the index.html





Code:
<HTML>
<HEAD>
onLoad="alert('FUN')"
</HEAD>
<BODY>
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"
WIDTH="100%" HEIGHT="100%" id="myMovieName">
<PARAM NAME=movie VALUE=" 2204354.swf"> 
<PARAM NAME=quality VALUE=high>
<PARAM NAME=bgcolor VALUE=#FFFFFF>
<EMBED src=" 2204354.swf" quality=high bgcolor=#FFFFFF WIDTH="1231" HEIGHT="798" 
NAME="myMovieName" ALIGN="" TYPE="application/x-shockwave-flash" 
PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">
</EMBED>
</OBJECT>

</BODY>
</HTML>


 
Styx

Styx

Contributor
Messages
2,736
Reaction score
358
It's still not working =/ This is what I have in the index.html





Code:
<HTML>
<HEAD>
onLoad="alert('FUN')"
</HEAD>
<BODY>
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"
WIDTH="100%" HEIGHT="100%" id="myMovieName">
<PARAM NAME=movie VALUE=" 2204354.swf"> 
<PARAM NAME=quality VALUE=high>
<PARAM NAME=bgcolor VALUE=#FFFFFF>
<EMBED src=" 2204354.swf" quality=high bgcolor=#FFFFFF WIDTH="1231" HEIGHT="798" 
NAME="myMovieName" ALIGN="" TYPE="application/x-shockwave-flash" 
PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">
</EMBED>
</OBJECT>

</BODY>
</HTML>
Try this:
Code:
<html>
<head>
<script type="text/JavaScript">
<!--
function MM_popupMsg(msg) { //v1.0
alert(msg);
}
//-->
</script>
</head>
<body onload="MM_popupMsg('Fun\r')">
Then the rest of your code so this:
Code:
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"
WIDTH="100%" HEIGHT="100%" id="myMovieName">
<PARAM NAME=movie VALUE=" 2204354.swf"> 
<PARAM NAME=quality VALUE=high>
<PARAM NAME=bgcolor VALUE=#FFFFFF>
<EMBED src=" 2204354.swf" quality=high bgcolor=#FFFFFF WIDTH="1231" HEIGHT="798" 
NAME="myMovieName" ALIGN="" TYPE="application/x-shockwave-flash" 
PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">
</EMBED>
</OBJECT>

</BODY>
</HTML>
Forgot to tell you its java :tongue:
 
qaadka

qaadka

Se7en Elite
Messages
5,384
Reaction score
904
Try this:
Code:
<html>
<head>
<script type="text/JavaScript">
<!--
function MM_popupMsg(msg) { //v1.0
alert(msg);
}
//-->
</script>
</head>
<body onload="MM_popupMsg('Fun\r')">
Then the rest of your code so this:
Code:
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"
WIDTH="100%" HEIGHT="100%" id="myMovieName">
<PARAM NAME=movie VALUE=" 2204354.swf"> 
<PARAM NAME=quality VALUE=high>
<PARAM NAME=bgcolor VALUE=#FFFFFF>
<EMBED src=" 2204354.swf" quality=high bgcolor=#FFFFFF WIDTH="1231" HEIGHT="798" 
NAME="myMovieName" ALIGN="" TYPE="application/x-shockwave-flash" 
PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">
</EMBED>
</OBJECT>

</BODY>
</HTML>
Forgot to tell you its java :tongue:




That one sort of worked :tongue: It came up when I went on internet explorer but not on chrome and opera =/ Also, would there be a way so the pop up window keeps popping up?


 
Styx

Styx

Contributor
Messages
2,736
Reaction score
358
That one sort of worked :tongue: It came up when I went on internet explorer but not on chrome and opera =/ Also, would there be a way so the pop up window keeps popping up?
Yeah, to make it keep popping up, you just add more of them like this:
Code:
<body onload="MM_popupMsg('1');MM_popupMsg('2');MM_popupMsg('3')">
so basically for every next popup, add this:
Code:
;MM_popupMsg('MESSAGEHERE')
If you want to do this alot with the same message, just copy&paste it a lot of times.

EDIT: Works in Chrome for me :smile:
They may have a built-in system that detects a lot of pop-ups and blocks them, because when my first one came up, it asked "disable this site from opening additional popups?"
 
Status
Not open for further replies.
Top Bottom