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 background in dynamic html pages with DOM
Oct 23 2013 1:26 AM
Hi, below
code is related to displaying banner and background in dynamic html pages. 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 (
2
)
how to make mobile compatible website
what data type is used for store large text in mysql