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:
------------------
------------how to write code for background----------------
Bhanupriya chepuriPosted Oct 28, 2013, 1:18 AM
player.html: or player.php :
-------------------------
if i write like this it is displaying the image but not as background.To display the background how should i write, i mean for static background we write as
what about for dynamic?
Sunny SharmaPosted Oct 26, 2013, 4:59 PM
Please ensure to add the extension name of the file that pertains to given "backgroundid" variable, like:
$ele4->setAttribute('src',$backgroundid+'.jpg'); // or gif / png / etc.
Hope it helps :)