6000 credits for video pop-up

bigjoe4

New Member
Messages
907
Reaction score
0
Points
0
My site has an intro on the index page which redirects to the main page after it finishes, but I want to change it so that the intro opens as a pop-up on the main page.

Whoever can give me the code to make the video come up as a pop-up gets 6000 credits. I also want the pop-up to not get blocked by pop-up blockers!

I would like the pop-up to preferably have a "close" button or close automatically once the video finishes.

My site is here: http://www.circuitz4u.com/
 

konekt

New Member
Messages
100
Reaction score
0
Points
0
On your main page enter the following in your head:
Code:
<script language="javascript" type="text/javascript">
var newwindow;
function video(url)
{
newwindow=window.open(url,'name','height=800,width=800, scrollbars');
	if (window.focus) {newwindow.focus()}
}
</SCRIPT>
Also add this to the body declaration of your main page:

<body onLoad = "video(url)" >

Where url is the page where the video is embedded. I don't know how big your video file is, so change the height and width portion of the javascript to suit your needs.

If you need a video page, here is an example:

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
</head>
<body>
<embed style="width:560px; height:456px;" id="VideoPlayback" type="application/x-shockwave-flash" src="VIDEO-URL"> </embed>
</body>
</html>

That page points to the video in VIDEO-URL. If it was called video.html, and in the same directory as your index, the previous page would look like this:

<body onLoad = "video(video.html)" />
 
Last edited:

bigjoe4

New Member
Messages
907
Reaction score
0
Points
0
OK thanks but it does not work, it is probably just a mistake made by me because I do not understand javascript well. The page is here so you can check what mistake I have made and tell me: http://www.circuitz4u.com/preview.php
 
Last edited:

DeadBattery

Community Support Team
Community Support
Messages
4,018
Reaction score
120
Points
0
bigjoe4, can it be a content management system or not?
 

bigjoe4

New Member
Messages
907
Reaction score
0
Points
0
bigjoe4, can it be a content management system or not?

I dunno what that is, all I want is a pop-up video that works and doesn't get blocked by pop-up blockers. If you can do that with a "content management system" then fine as long as it does what I want.
 

Sohail

Active Member
Messages
3,055
Reaction score
0
Points
36
6,000 credits just for that!!? It's probably only worth around 500 credits you know xD!
 

DeadBattery

Community Support Team
Community Support
Messages
4,018
Reaction score
120
Points
0
Oh, Sorry. I read part of your signature and was asking about that.
Oops.
 

David_Tiger

New Member
Messages
277
Reaction score
0
Points
0
try:

Place the following code under the <BODY> tag within your HTML:

HTML:
<script type="text/javascript">
var popurls=new Array()
popurls[0]="http://www.circuitz4u.com/redirect.swf"
function openpopup(popurl){
var winpops=window.open(popurl,"","width=420,height=320,toolbar,location,status,scrollbars,menubar,resizable")
}
openpopup(popurls[Math.floor(Math.random()*(popurls.length))])
</script>

EDIT: CHANGED CODE, WORKS =- guessed the sizes but you could change to suit you
 
Last edited:

bigjoe4

New Member
Messages
907
Reaction score
0
Points
0
try:

Place the following code under the <BODY> tag within your HTML:

HTML:
<script language="JavaScript">
window.open('http://www.yourdomain.com','windowname','
height='320,width=320,scrollbars,resizable');
</script>

nope it does not work: http://www.circuitz4u.com/circuit-and-PCB-designer.php
Edit:
oh, just read your last edit, will re-try
Edit:
it still does not work; all it does is destroy the layout of the page:
http://www.circuitz4u.com/layout destroyed.php
 
Last edited:

David_Tiger

New Member
Messages
277
Reaction score
0
Points
0
did you put at the very top of the <body> ?

if not try that, if yes then i'll try again

on my index


try code

HTML:
<script type="text/javascript">var popurls=new Array()
popurls[0]="http://www.circuitz4u.com/redirect.swf"
function openpopup(popurl){
var winpops=window.open(popurl,"","width=420,height=300,resizable")
}
openpopup(popurls[Math.floor(Math.random()*(popurls.length))])
</script>

noticed your using php this code i made in html
 
Last edited:

bigjoe4

New Member
Messages
907
Reaction score
0
Points
0
OK it works except it get blocked by pop-up blockers I need it to not get blocked by pop-up blockers.
 

David_Tiger

New Member
Messages
277
Reaction score
0
Points
0
its acctually real hard to do that especially ones with good anti-spam/virus softwares and firewalls its hard to bypass those tough ones

i'll give it a go ;)
 

David_Tiger

New Member
Messages
277
Reaction score
0
Points
0
yes but nothing happens with mozilla firefox latest beta with AVG7.5 full securit i get no pop-up and can leave the page fine
 

bigjoe4

New Member
Messages
907
Reaction score
0
Points
0
it works on my firefox, try waiting a few seconds before you try to leave the page.
 

David_Tiger

New Member
Messages
277
Reaction score
0
Points
0
yer anyway as it states thats not a pop-up, dont know how its done but the only way that i can think of bypassing blockers is to click a link and it opens a page but all other onload onunload etc get blocked
 

bigjoe4

New Member
Messages
907
Reaction score
0
Points
0
I dunno what you mean. + Could you not look at the source code of the site and work out how it is done?
 
Last edited:
Top