/ Published in: PHP
Expand |
Embed | Plain Text
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> <style type="text/css"> .fullbackground_img { width:100%; position:absolute;top:0px;left:0px; z-index:2; } #fullbackground_link_achor{ width:250px;height:150px; display:block;overflow:hidden; background-color:red; margin:0px auto; } #fullbackground_link_achor a{ width:250px;height:150px; display:block;overflow:hidden; color:#fff; background-color:red; } #content_wrapper { width:100%; position:absolute;top:0px;left:0px; z-index:3; top:0px;left:0px; } #wrapper { margin:0px auto;padding:0px; width:970px; display:block;overflow:hidden; background-color: green; } #content { width:970px;height:1000px; display:block;overflow:hidden; background-color:#ccc; } #header { width:970px;height:50px; display:block;overflow:hidden; background-color:#666; } #header a { width:970px;height:50px; display:block;overflow:hidden; } </style> </head> <body> <? if ($changelinks == "1") { $changelinks_copy = "one"; $changelinks_url = "linkone"; } elseif ($changelinks == "2") { $changelinks_copy = "two"; $changelinks_url = "linktwo"; } elseif ($changelinks == "3") { $changelinks_copy = "three"; $changelinks_url = "linkthree"; } ?> <div id="fullbackground_container"> <img id="background-img" class="fullbackground_img" src="<?=$changelinks;?>.jpg" alt="<?=$changelinks_copy;?>" /> </div> <div id="content_wrapper"> <div id="wrapper"> <div id="header"><a href="http://www.google.com" onclick="window.open(this.href); return false">Header</a></div> <div id="content"> <div id="fullbackground_link_achor"> <a href="<?=$changelinks_url;?>"> <?=$changelinks_copy;?> </a> </div> </div> </div> </div> </body> </html>
Comments
Subscribe to comments
You need to login to post a comment.

This is Javascript, not PHP