6000 credits for video pop-up

bigjoe4

New Member
Messages
907
Reaction score
0
Points
0
yes I know, can you find the part of the source that has the pop-up?
 
Last edited:

David_Tiger

New Member
Messages
277
Reaction score
0
Points
0
i will look into it but for now i must go, if you get it from someone else it ok but i'll see what i can find out of the source.

thanks, david
 

supajason

Member
Messages
288
Reaction score
2
Points
18
OK here goes

add this between the head tags
HTML:
<script type="text/javascript" src="popup.js"></script>

then add this in the body tag
HTML:
<body onLoad = "popup_show('popup', 'popup_drag', 'popup_exit', 'screen-center', 0, 0);" />

then on add this at the end of the body tag
HTML:
<!-- Popup Window  -->
<div id="popup" style="display: none;">

<div id="popup_drag">
<img id="popup_exit" src="form_exit.png"/>
<embed style="width:560px; height:456px;" id="VideoPlayback" type="application/x-shockwave-flash" src="redirect.swf"> </embed>
</div>

</div>
<!-- END -->

and upload the files!
 

Attachments

  • Desktop.rar
    2 KB · Views: 3
Last edited:

Russ

<b>Retired *****</b>
Messages
3,168
Reaction score
2
Points
38
Joe, check this one out.. If you like it, send me some info, video url, length etc and i'll customize it..

http://rpope904.x10hosting.com/testpopup.html


I can change colors, size, title, fade in time/method, and make it leave after a certain time..

And, there are no other files to upload.. Just pure code. ;)
 
Last edited:

konekt

New Member
Messages
100
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
In the javascript, you have to leave it like this:

function video(url)

do NOT insert video.html into the funtion. Only insert it into the function call, so onLoad="video(video.html)"
 

bigjoe4

New Member
Messages
907
Reaction score
0
Points
0
konekt, it changed that and it still does not work: http://www.circuitz4u.com/preview.php, don't worry though I think I will use Russ's idea as it seems best.

Russ, yes please, the video is called video.swf and I would like it only to load once per day. I would like it to leave after 40 seconds. Make the title "Circuitz4u.com" I would like the pop-up to be orange. the url of the video is http://www.circuitz4u.com/video.swf
Edit:
look at the bottom left!

Oh yes I did not see that because it was so small, but don't worry I think I will use RUSS's idea.
Edit:
I have to go now I will be online tomorrow.
 
Last edited:

Russ

<b>Retired *****</b>
Messages
3,168
Reaction score
2
Points
38
Code info sent to you in private message, and for those curious about what it looks like when a pro does it, http://rpope904.x10hosting.com/testpopup.html ;)


Joe, this one will show only once a day, per user.. If you want to change that, let me know..
 
Last edited:

javajenius

New Member
Messages
258
Reaction score
0
Points
0
Darn I was too late,

Head,
Code:
<!-- Put the following code into <head> section -->
<script language="JavaScript1.2">
var ie=document.all
var dom=document.getElementById
var ns4=document.layers
var calunits=document.layers? "" : "px"
var bouncelimit
var direction="up"
var usedropin=1
function PopupMe(){
if (!dom&&!ie&&!ns4){
window.open("video.html", "", "scrollbars=1")}else{
bouncelimit=32 //(must be divisible by 8)
crossobj=(dom)?document.getElementById("dropin").style : ie? document.all.dropin : document.dropin
crossframe=(dom)?document.getElementById("cframe") : ie? document.all.cframe : document.cframe
crossframe.src="video.html"
if(usedropin){
scroll_top=(ie)? truebody().scrollTop : window.pageYOffset
crossobj.top=scroll_top-250+calunits}
crossobj.visibility=(dom||ie)? "visible" : "show"
if(usedropin){
dropstart=setInterval("dropin()",50)}}}
function dropin(){
scroll_top=(ie)? truebody().scrollTop : window.pageYOffset
if (parseInt(crossobj.top)<100+scroll_top){
crossobj.top=parseInt(crossobj.top)+40+calunits
if (parseInt(crossobj.top)>100+scroll_top){crossobj.top=100+scroll_top}}else{
clearInterval(dropstart)
bouncestart=setInterval("bouncein()",50)}}
function bouncein(){
crossobj.top=parseInt(crossobj.top)-bouncelimit+calunits
if (bouncelimit<0)
bouncelimit+=8
bouncelimit=bouncelimit*-1
if (bouncelimit==0){
clearInterval(bouncestart)}}
function dismissbox(){
if (window.bouncestart) clearInterval(bouncestart)
crossobj.visibility="hidden"}
function truebody(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body}
</script>

Body,
Code:
<body onload="javascript:PopupMe()">
<div id="dropin" style="position:absolute;visibility:hidden;left:100px;top:100px;width:604px;height:500px;background-color:#F5F5F5;border:solid thin #cccccc">
<div align="right" style="background-color:navy"><a href="#" onClick="dismissbox();return false"><FONT COLOR="#FFFFFF">[X]</FONT></a></div>
<IFRAME ID="cframe" SRC="" width=600 height=500 FRAMEBORDER=0></IFRAME></div>

Upload your video and save it to a file called video.html, then this should show you the video.

View demo here.
 
Last edited:

Nothingness

New Member
Messages
38
Reaction score
0
Points
0
I would say that since the video continues to play after it slides off to the right, just add a stop(); in the slide in flash. That would solve that problem too.
 

bigjoe4

New Member
Messages
907
Reaction score
0
Points
0
I would say that since the video continues to play after it slides off to the right, just add a stop(); in the slide in flash. That would solve that problem too.

Yes, RUSS, do that, and also it doesn't seem to work properly in Safari web browser, so could you either make it work or not display if the user is using Safari?
 

Russ

<b>Retired *****</b>
Messages
3,168
Reaction score
2
Points
38
I sent you a PM as to how to fix it, basically, what Nothingness said was on your end, you'd have to edit the video in flash and add that.. The method I sent was to add a loop=false to the code I sent you.. It says how to do it in the PM.. I am going to work on the browser issue when I get home, I am gonna download it and try it, and see what exactly it's doing. The majority is firefox, opera, and IE, so it shouldn't be a big issue until I get home and get a fix for you. :)

Edit:

I have looked into some things, and was told it should work, assuming that javascript is enabled, and so on.. But, neverless I am going to test it myself, we'll get it fixed.
 
Last edited:

Russ

<b>Retired *****</b>
Messages
3,168
Reaction score
2
Points
38
It worked fine for me in safari..

safari1.jpg

and:
safari2.jpg
 
Top