<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <link rel="Stylesheet" type="text/css" href="style.css" /> </head> <body> <div id="background"> <div id="middle"> <div id="content"> Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. </div> </div> </div> </body> </html>
Chcę do niego dodać skrypt php, zawierający elementy JavaScript... Chcę go dodać do diva right...
<div style="width:300px;"><script> function pokazdiv(el) { for(var i=1; i<=2; i++) { if(el == i) { document.getElementById(el).style.display = "block";} else{document.getElementById(i).style.display = "none" ;}}} </script> <center><a href="java script:void(0);" onclick="pokazdiv('1');">Następny mecz</a> | <a href="java script:void(0);" onclick="pokazdiv('2');">Poprzedni mecz</a></center> <div id="1"> treść następnego meczu treść następnego meczu treść następnego meczu <br> </div> <div id="2" style="display:none;"> treść poprzedniego meczu<br> treść poprzedniego meczu<br> treść poprzedniego meczu<br> </div> </div>
Zmieniam rozszerzenie na php i próbuje funkcji include.. Nic z tego.. Sam skrypt działa poprawnie..
Jeśli się przyda: style.css
#top { height: 80px; background: #d4f393 } #footer { background: #bdf884; height: 60px; clear:both } #right { float: right; width: 300px; background: #cfc4a9 } #middle { float: left; width: 100%; margin-right: -300px; } #content { margin-right: 300px; background: #e7e2d5 } #background { background: #e7e2d5 url(right.png) right repeat-y; } .clear { clear: both }
Co zrobić.. ?
NIE AKTUALNE !