Best Redirect Frame

Discussion in 'HTML & Website Design' started by @bove, Dec 14, 2010.

  1. #1
    I'm looking for a redirect frame I can use on my site for outbound links. I want something I can customize to include ad banners. A perfect example would be the one used by http://cssremix.com

    If you click on any of the sites you will notice CSSREMIX places a bar at the top which you can removed by clicking the X. That is what I'm looking for. Is there any script for that?
     
    @bove, Dec 14, 2010 IP
  2. jeremyhowell

    jeremyhowell Member

    Messages:
    379
    Likes Received:
    7
    Best Answers:
    2
    Trophy Points:
    45
    #2
    Im no expert, but here is how I would do it:

    http://www.all4sides.com/red.php

    
    <html>
    <head>
    <title>Hello</title>
    </head>
    <body>
    <div style="width:100%; position:fixed; height:60px; background-color:red; z-index:1;"></div>
    <?php include("http://cssremix.com/"); ?>
    <?php include("http://cssremix.com/"); ?>
    </body>
    </html>
    
    Code (markup):
    No need to add two includes, just to demonstrate how banner is fixed.
     
    jeremyhowell, Dec 14, 2010 IP
  3. @bove

    @bove Peon

    Messages:
    20
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    That is exactly what I'm looking for Jeremy. About the include part is it possible to set it up so it automatically includes any link that is clicked on the site? I want to use this on a MyBB forum so any outgoing link has that banner or frame around it.
     
    @bove, Dec 14, 2010 IP
  4. jeremyhowell

    jeremyhowell Member

    Messages:
    379
    Likes Received:
    7
    Best Answers:
    2
    Trophy Points:
    45
    #4
    Do you mean something like this? This isnt a good method I dont think, but just for the sake of a demonstration, what I am doing is feeding individual parts of the url to the page which it will then include, so I want to include all4sides.com/index.html, this is the URL I will goto: http://www.all4sides.com/red.php?pa...=com&secondpagenamev=index&secondsuffixv=html

    
    <html>
    <head>
    <title>Hello</title>
    </head>
    <body>
    <div style="width:100%; position:fixed; height:60px; background-color:red; z-index:1;"></div>
    <?php 
    $suffix = $_GET['suffixv'];
    $pagename = $_GET['pagenamev'];
    $secondpagename = $_GET['secondpagenamev'];
    $secondsuffix = $_GET['secondsuffixv'];
    include("http://".$pagename.".".$suffix."/".$secondpagename.".".$secondsuffix); ?>
    </body>
    </html>
    
    Code (markup):
    Like I said, I am not sure whether using this method is such a good idea in the long run, but is this basically sort of what you want?
     
    jeremyhowell, Dec 14, 2010 IP
  5. CSM

    CSM Active Member

    Messages:
    1,047
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    55