TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Bhanupriya chepuri
NA
9
16.2k
how to display banner and background in dynamic html pages
Nov 1 2013 6:45 AM
Hi, below
code is related to displaying banner and background in dynamic html pages with DOM. Banner is displaying in html pages but background is not displayed
<?php
require('simple_html_dom.php');
$banner = $_GET["banner"];
$background = $_GET["background"];
$z="uploadbanner/";
a="uploadbackground/";
$bannerid= substr_replace($z,$banner,14,0);
//$backgroundid= substr_replace($a,$background,
18,0);
$html=file_get_html("player.html");
$ele3=$html->getElementById('test3');
//$ele4=$html->getElementById('test4');
//$ele4->setAttribute('src',$backgroundid);
$n=file_put_contents("$name.html",$html);
$page=$name.'.html';
?>
player.html:
------------------
<img id="test3" src="" width="1600" height="200"> //for displaying banner
------------how to write code for background----------------
Reply
Answers (
0
)
Menu Probleam
How to load an Iframe instantly with the parent page?