Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Apr 2007
    Posts
    7
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Can someone help with jump frame??

    Hi


    I want to make a jump frame (i think is the name), when people click in an image or video, appears a frame in the top (or left), but i want to put an id for each video and image.
    There are a simple and better way, but i don´t know how to do, where we can put only the link and it redirects with the frame in php (out.php) like this one (this is an adult link, not spam, only is an example what i want):

    http://www.homemade-voyeur.com/out.p...nging_room.wmv

    I have download this with a jump frame id but it don´t work:

    Jump file
    Code:
    <?php
    
    require_once("links.php");
    function topframe($id)
        {
        global $link, $sitename, $siteurl;
        echo "<html><head><title>$sitename - Jumping To: ".$link[$id][sitename]."</title></head><body topmargin=6><table width=100% border=0><tr><td width=33%>\n"
            ."<b>Back To: <a href=$siteurl>$sitename</a></b></td><td align=center width=33%><b>Jumping To: ".$link[$id][sitename]."</b></td><td align=right width=33%>"
            ."<b><a href=".$link[$id][address].">Remove Frame</a></b></td></tr></table></body></html>";
        }
    function index($id)
        {
        global $link, $sitename;
        if(!isset($id))
            {
            echo "<html><head><title>$sitetitle</title></head><body>Error, No ID!</body></html>\n";
            }
        elseif(!isset($link[$id]))
    	{
    	echo "<html><head><title>$sitetitle</title></head><body>Error, Unknown ID!</body></html>\n";
    	}    
        else
            {
            echo "<FRAMESET ROWS=\"10%,90%\"><FRAME SRC=\"jump.php?op=topframe&id=$id\" scrolling=no> <FRAME SRC=".$link[$id][address]."></FRAMESET>\n";
            }
        }
    switch($op)
        {
        default:
        index($id);
        break;
        
        case "topframe":
        topframe($id);
        break;
        }
    ?>


    Link file
    Code:
    <?php
    
    if (eregi("links.php",$PHP_SELF))
        {
        die("You can't access this file directly...");
        }
    /********************************************************/
    /* Use this as a template to set up other links         */
    /*                                                      */
    /* $link[idname][name] = "";               */
    /* $link[idname][address] = ""; */
    /*                                                      */
    /* The idname can be what ever you want it to be. Just  */
    /* do not add any quotes in the idname, sitename or URL */
    /********************************************************/
    $sitename = "";
    $siteurl = "";
    
    $link['1']['sitename'] = "";
    $link['1']['address'] = "";
    
    $link['']['sitename'] = "";
    $link['']['address'] = "";
    
    $link['']['sitename'] = "";
    $link['']['address'] = "";
    
    $link['']['sitename'] = "";
    $link['']['address'] = "";
    
    $link['']['sitename'] = "";
    $link['']['address'] = "";
    
    $link['']['sitename'] = "";
    $link['']['address'] = "";
    
    $link['']['sitename'] = "";
    $link['']['address'] = "";
    
    $link['']['sitename'] = "";
    $link['']['address'] = "";
    
    $link['']['sitename'] = "";
    $link['']['address'] = "";
    
    $link['']['sitename'] = "";
    $link['']['address'] = "";
    
    $link['']['sitename'] = "";
    $link['']['address'] = "";
    
    $link['']['sitename'] = "";
    $link['']['address'] = "";
    
    $link['']['sitename'] = "";
    $link['']['address'] = "";
    
    $link['']['sitename'] = "";
    $link['']['address'] = "";
    
    $link['']['sitename'] = "";
    $link['']['address'] = "";
    
    $link['']['sitename'] = "";
    $link['']['address'] = "";
    
    $link['']['sitename'] = "";
    $link['']['address'] = "";
    
    $link['']['sitename'] = "";
    $link['']['address'] = "";
    
    $link['']['sitename'] = "";
    $link['']['address'] = "";
    
    $link['']['sitename'] = "";
    $link['']['address'] = "";
    
    $link['']['sitename'] = "";
    $link['']['address'] = "";
    
    $link['']['sitename'] = "";
    $link['']['address'] = "";
    
    $link['']['sitename'] = "";
    $link['']['address'] = "";
    
    ?>


    Sorry my bad english.
    Hope someone can help me please.


    PS: I don´t know php, only html.

    Many thanks
    Last edited by nellaf; 04-05-2007 at 12:33 PM.

  • #2
    Regular Coder
    Join Date
    Oct 2005
    Location
    Right Here
    Posts
    654
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Jump frame eh? Never heard of it. But if you want a div to display a movie and you update the div with a new movie, then go learn AJAX.

  • #3
    Senior Coder angst's Avatar
    Join Date
    Apr 2004
    Location
    Toronto, Ontario
    Posts
    2,114
    Thanks
    15
    Thanked 122 Times in 122 Posts
    I don't know what ur doing with that code, but this sounds just like a normal html <frame>, u can send your links to it via target='frame', or whatever you wanna call the frame.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •