PHP beginner |
|
Hej allemaal, het voorbeeld is te zien op:
Dan zie je bij Team, dat de padding bovenaan van de images niet goed is. Hoe kan ik dit het beste oplossen? De padding onderaan is standaard, deze krijg ik dus ook niet weg. De padding tussen de plaatjes zijn gewoon spaties.
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1-strict.dtd">
<html>
<head>
<title>
My Final Destination :: Comming Soon
</title>
<script type="text/javascript" name="Javascript">
var Team_content="<table class='table_management' border='0px' cellspacing='0px' cellpadding='0px'><tr><td height='1px' style='border: 1px solid #000000' bgcolor='#C0C0C0'>Management</td></tr><tr><td padding='0px' style='border-left: 1px solid #000000; border-right: 1px solid #000000; border-top-width: 1px; border-bottom: 1px solid #000000'> <img src='images/members/zero.bmp' onclick='profiles_zero()'></img> <img src='images/members/zero.bmp' onclick='profiles_zero()'></img> <img src='images/members/zero.bmp' onclick='profiles_zero()'></img> <img src='images/members/zero.bmp' onclick='profiles_zero()'></img> <img src='images/members/zero.bmp' onclick='profiles_zero()'></img> </td></tr></table>"
function profiles_zero() {
window.open('profiles/zero.html','ZeRO','width=300px,height=600px,scrollbars=no,toolbar=no,location=no,menubar=no,status=no,resizable=no');
}
function Home_mouseover() {
document.Home.src ="images/Home_over.bmp"
}
function Sponsors_mouseover() {
document.Sponsors.src ="images/Sponsors_over.bmp"
}
function Team_mouseover() {
document.Team.src ="images/Team_over.bmp"
}
function Contact_mouseover() {
document.Contact.src ="images/Contact_over.bmp"
}
function Home_mouseout() {
document.Home.src ="images/Home.bmp"
}
function Sponsors_mouseout() {
document.Sponsors.src ="images/Sponsors.bmp"
}
function Team_mouseout() {
document.Team.src ="images/Team.bmp"
}
function Contact_mouseout() {
document.Contact.src ="images/Contact.bmp"
}
function Home_mouseclick() {
document.getElementById('p_content').innerHTML = 'Home';
}
function Sponsors_mouseclick() {
document.getElementById('p_content').innerHTML = 'Sponsors';
}
function Team_mouseclick() {
document.getElementById('p_content').innerHTML = Team_content;
}
function Contact_mouseclick() {
document.getElementById('p_content').innerHTML = 'Contact';
}
</script>
<style type="text/css" name="StyleSheet">
body {
background: url(images/background.gif);
}
.div_content {
position: reletive;
float: right;
width: 300px;
height: 600px;
border: solid black 1px;
background: #FFFFFF;
text-align: center;
background: url(images/copyright.bmp);
}
.td_management {
border: 1px solid #000000;
border-top: 0px;
padding: 5px;
height: 65px;
}
.table_management {
margin-left: auto;
margin-right: auto;
}
</style>
</head>
<body>
<div class="div_content">
<img id="Home" src="images/Home.bmp" border="0" OnMouseOver="Home_mouseover()" OnMouseOut="Home_mouseout()" OnClick="Home_mouseclick()"></img><img name="Sponsors" src="images/Sponsors.bmp" border="0" OnMouseOver="Sponsors_mouseover()" OnMouseOut="Sponsors_mouseout()" OnClick="Sponsors_mouseclick()"></img><img name="Team" src="images/Team.bmp" border="0" OnMouseOver="Team_mouseover()" OnMouseOut="Team_mouseout()" OnClick="Team_mouseclick()"></img><img name="Contact" src="images/Contact.bmp" border="0" OnMouseOver="Contact_mouseover()" OnMouseOut="Contact_mouseout()" OnClick="Contact_mouseclick()"></img>
<br /><br />
<p class="p_content" id="p_content">Home</p>
</div>
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1-strict.dtd"> <html> <head> <title> My Final Destination :: Comming Soon </title> <script type="text/javascript" name="Javascript"> var Team_content="<table class='table_management' border='0px' cellspacing='0px' cellpadding='0px'><tr><td height='1px' style='border: 1px solid #000000' bgcolor='#C0C0C0'>Management</td></tr><tr><td padding='0px' style='border-left: 1px solid #000000; border-right: 1px solid #000000; border-top-width: 1px; border-bottom: 1px solid #000000'> <img src='images/members/zero.bmp' onclick='profiles_zero()'></img> <img src='images/members/zero.bmp' onclick='profiles_zero()'></img> <img src='images/members/zero.bmp' onclick='profiles_zero()'></img> <img src='images/members/zero.bmp' onclick='profiles_zero()'></img> <img src='images/members/zero.bmp' onclick='profiles_zero()'></img> </td></tr></table>" function profiles_zero() { window.open('profiles/zero.html','ZeRO','width=300px,height=600px,scrollbars=no,toolbar=no,location=no,menubar=no,status=no,resizable=no'); } function Home_mouseover() { document.Home.src ="images/Home_over.bmp" } function Sponsors_mouseover() { document.Sponsors.src ="images/Sponsors_over.bmp" } function Team_mouseover() { document.Team.src ="images/Team_over.bmp" } function Contact_mouseover() { document.Contact.src ="images/Contact_over.bmp" } function Home_mouseout() { document.Home.src ="images/Home.bmp" } function Sponsors_mouseout() { document.Sponsors.src ="images/Sponsors.bmp" } function Team_mouseout() { document.Team.src ="images/Team.bmp" } function Contact_mouseout() { document.Contact.src ="images/Contact.bmp" } function Home_mouseclick() { document.getElementById('p_content').innerHTML = 'Home'; } function Sponsors_mouseclick() { document.getElementById('p_content').innerHTML = 'Sponsors'; } function Team_mouseclick() { document.getElementById('p_content').innerHTML = Team_content; } function Contact_mouseclick() { document.getElementById('p_content').innerHTML = 'Contact'; } </script> <style type="text/css" name="StyleSheet"> body { background: url(images/background.gif); } .div_content { position: reletive; float: right; width: 300px; height: 600px; border: solid black 1px; background: #FFFFFF; text-align: center; background: url(images/copyright.bmp); } .td_management { border: 1px solid #000000; border-top: 0px; padding: 5px; height: 65px; } .table_management { margin-left: auto; margin-right: auto; } </style> </head> <body> <div class="div_content"> <img id="Home" src="images/Home.bmp" border="0" OnMouseOver="Home_mouseover()" OnMouseOut="Home_mouseout()" OnClick="Home_mouseclick()"></img><img name="Sponsors" src="images/Sponsors.bmp" border="0" OnMouseOver="Sponsors_mouseover()" OnMouseOut="Sponsors_mouseout()" OnClick="Sponsors_mouseclick()"></img><img name="Team" src="images/Team.bmp" border="0" OnMouseOver="Team_mouseover()" OnMouseOut="Team_mouseout()" OnClick="Team_mouseclick()"></img><img name="Contact" src="images/Contact.bmp" border="0" OnMouseOver="Contact_mouseover()" OnMouseOut="Contact_mouseout()" OnClick="Contact_mouseclick()"></img> <br /><br /> <p class="p_content" id="p_content">Home</p> </div> </body> </html>
|