+ Reply to Thread
Page 1 of 5 123 ... LastLast
Results 1 to 10 of 44

Thread: 6000 credits for video pop-up

  1. #1
    bigjoe4 is offline x10 Elder bigjoe4 is an unknown quantity at this point
    Join Date
    Jan 2008
    Posts
    907

    6000 credits for video pop-up

    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/
    Please visit my site: Circuit designer

  2. #2
    konekt's Avatar
    konekt is offline x10 Sophmore konekt is an unknown quantity at this point
    Join Date
    Mar 2008
    Posts
    100

    Re: 6000 credits for video pop-up

    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 by konekt; 03-31-2008 at 11:07 AM.

  3. #3
    bigjoe4 is offline x10 Elder bigjoe4 is an unknown quantity at this point
    Join Date
    Jan 2008
    Posts
    907

    Re: 6000 credits for video pop-up

    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 by bigjoe4; 03-31-2008 at 03:23 PM.
    Please visit my site: Circuit designer

  4. #4
    DeadBattery's Avatar
    DeadBattery is offline Community Support Team DeadBattery is a name known to allDeadBattery is a name known to all
    Join Date
    Mar 2008
    Location
    localhost
    Posts
    4,019

    Re: 6000 credits for video pop-up

    bigjoe4, can it be a content management system or not?


  5. #5
    bigjoe4 is offline x10 Elder bigjoe4 is an unknown quantity at this point
    Join Date
    Jan 2008
    Posts
    907

    Re: 6000 credits for video pop-up

    Quote Originally Posted by aopsftw View Post
    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.
    Please visit my site: Circuit designer

  6. #6
    Sohail's Avatar
    Sohail is offline x10 Spammer Sohail is an unknown quantity at this point
    Join Date
    Sep 2007
    Location
    London, UK
    Posts
    3,052

    Re: 6000 credits for video pop-up

    6,000 credits just for that!!? It's probably only worth around 500 credits you know xD!

  7. #7
    bigjoe4 is offline x10 Elder bigjoe4 is an unknown quantity at this point
    Join Date
    Jan 2008
    Posts
    907

    Re: 6000 credits for video pop-up

    Quote Originally Posted by sohailamir52 View Post
    6,000 credits just for that!!? It's probably only worth around 500 credits you know xD!
    Yes but I want it done fast.
    Please visit my site: Circuit designer

  8. #8
    DeadBattery's Avatar
    DeadBattery is offline Community Support Team DeadBattery is a name known to allDeadBattery is a name known to all
    Join Date
    Mar 2008
    Location
    localhost
    Posts
    4,019

    Re: 6000 credits for video pop-up

    Oh, Sorry. I read part of your signature and was asking about that.
    Oops.


  9. #9
    David_Tiger's Avatar
    David_Tiger is offline x10 Lieutenant David_Tiger is an unknown quantity at this point
    Join Date
    Aug 2007
    Location
    Stoli.x10
    Posts
    278

    Re: 6000 credits for video pop-up

    try:

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

    HTML Code:
    <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 by David_Tiger; 03-31-2008 at 02:01 PM.

  10. #10
    bigjoe4 is offline x10 Elder bigjoe4 is an unknown quantity at this point
    Join Date
    Jan 2008
    Posts
    907

    Re: 6000 credits for video pop-up

    Quote Originally Posted by David_Tiger View Post
    try:

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

    HTML Code:
    <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%20destroyed.php
    Last edited by bigjoe4; 03-31-2008 at 02:04 PM. Reason: Automerged Doublepost
    Please visit my site: Circuit designer

+ Reply to Thread
Page 1 of 5 123 ... LastLast

Similar Threads

  1. Intro video as pop-up 6000 credits
    By bigjoe4 in forum Programming Help
    Replies: 1
    Last Post: 03-31-2008, 11:17 AM
  2. Need Advertising - Will pay in Credits
    By Loneua Technologies in forum Advertising
    Replies: 52
    Last Post: 03-16-2008, 02:40 PM
  3. Earn 150+ Credits Answering my question....
    By admintwo in forum The Marketplace
    Replies: 23
    Last Post: 02-15-2008, 07:40 AM
  4. Replies: 4
    Last Post: 11-27-2007, 06:49 PM
  5. Advertise me to easily double credits!
    By QuwenQ in forum The Marketplace
    Replies: 0
    Last Post: 11-01-2007, 04:43 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers