Advanced Search

Results 1 to 1 of 1

Thread: how to fetch the background in dynamic html pages

  1. #1
    Join Date
    Oct 2013
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Post how to fetch the background in dynamic html pages

    Hi,
    The following code is related to displaying banner and background in dynamic html pages. Banner is displaying in html pages but background is not displayed .Can u please check the code.


    view.php:
    -------------
    PHP Code:
    <?php
    @session_start();
    @
    ob_start();
    require(
    'simple_html_dom.php');
    //get random number
    $random $_GET["id"];
    $banner $_GET["banner"];
    $background $_GET["background"];
    $z="uploadbanner/";
    $a="uploadbackground/";
    $banneridsubstr_replace($z,$banner,14,0);
    $backgroundidsubstr_replace($a,$background,18,0);
    $html=file_get_html('player.php');
    $ele3=$html->getElementById('test3');
    $ele4=$html->getElementById('test4');
    $ele3->setAttribute('src',$bannerid);
    $ele4->setAttribute('src',$backgroundid);
    $n=file_put_contents("$name.html",$html);
    $page=$name.'.html';

    header("Location: http://localhost/sample/$page");
    ob_flush();
    exit;
    ?>
    player.php:

    -----------------
    Code:
    <body>
    <img id="test3" src="" width="1600" height="200"> //for displaying banner
    
    ------how to write for  background----------
    -
    </body>


    Thanks,
    Priya
    Last edited by priya@123; 10-29-2013 at 04:46 AM. Reason: Format

Similar Threads

  1. fade two .html pages
    By skizo in forum JavaScript
    Replies: 19
    Last Post: 02-28-2011, 02:14 PM
  2. HTML/CSS Pages
    By salvo in forum Looking for such a script or service
    Replies: 0
    Last Post: 02-08-2008, 08:25 PM
  3. HTML Pages in XP
    By BNVSAJ in forum CSS
    Replies: 8
    Last Post: 09-11-2007, 07:35 AM
  4. Replies: 6
    Last Post: 11-10-2006, 05:53 PM

Bookmarks

Posting Permissions

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