...

View Full Version : HTML & CSS help.



fedlerner
12-08-2006, 05:11 AM
Hi!
I need help, i need to do the following:
This is the web: http://www.rinconwebmaster.com.ar/x10/
USERNAME: testing
PASSWORD: tester


I need to add the following code to be displayed where it says "I WANT THE BANNER TO APPEAR HERE":


<script language='JavaScript' type='text/javascript'>
<!--
if (!document.phpAds_used) document.phpAds_used = ',';
phpAds_random = new String (Math.random()); phpAds_random = phpAds_random.substring(2,11);

document.write ("<" + "script language='JavaScript' type='text/javascript' src='");
document.write ("http://x10hosting.com/advert/adjs.php?n=" + phpAds_random);
document.write ("&what=zone:1&target=_blank");
document.write ("&exclude=" + document.phpAds_used);
if (document.referrer)
document.write ("&referer=" + escape(document.referrer));
document.write ("'><" + "/script>");
//-->

</script><noscript><a href='http://x10hosting.com/advert/adclick.php?n=a7fb3e9d' target='_blank'><img src='http://x10hosting.com/advert/adview.php?what=zone:1&n=a7fb3e9d' border='0' alt=''></a></noscript>

fedlerner
12-08-2006, 05:13 AM
The index.html code is:

<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>x10 Support</title>
<meta name="Keywords" content="" />
<meta name="Description" content="" />
<link href="default.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="header">
<h1>x10 Support</h1>
<h2>I WANT THE BANNER TO APPEAR HERE</h2>
</div>
<div id="content">

<div id="colOne">
<div id="menu1">
<ul>
<li id="menu-01"><a href="#">Home</a></li>
<li id="menu-02"><a href="#">Products</a></li>
<li id="menu-03"><a href="#">Services</a></li>
<li id="menu-04"><a href="#">About Us</a></li>
<li id="menu-05"><a href="#">Contact Us</a></li>
</ul>
</div>
<div class="margin-news">
<h2>Recent Updates</h2>
<p><strong>[06/09/2006]</strong> Etiam odio mi, suscipit et, rhoncus ac, lacinia, nisl. Aliquam gravida massa eu arcu. <a href="#"><strong>More…</strong></a></p>
<p><strong>[06/06/2006]</strong> Fusce mollis tristique sem. Sed eu eros imperdiet eros interdum blandit. Vivamus sagittis bibendum erat. Curabitur malesuada. <a href="#"><strong>More…</strong></a></p>
</div>
</div>

<div id="colTwo">
<h2>Welcome to Sitename.com!</h2>
<p><strong>BOXYBOX </strong>is a free template from <a href="http://www.freecsstemplates.org/"><strong>Free CSS Templates</strong></a> released under a <a href="http://creativecommons.org/licenses/by/2.5/"><strong>Creative Commons Attribution 2.5</strong> License</a>. You're free to use it for both commercial or personal use. I only ask that you link back to <a href="http://www.freecsstemplates.org/">my site</a> in some way. Enjoy :)</p>
<p>Suspendisse potenti. Donec nulla est, laoreet quis, pellentesque in, congue in, dui. Nunc rhoncus placerat augue. Donec justo odio, eleifend varius, volutpat venenatis, sagittis ut, orci. Donec nulla est, laoreet quis, pellentesque in, congue in, dui. Nunc rhoncus placerat augue. Donec justo odio, eleifend varius, volutpat venenatis, sagittis ut, orci. Nullam et orci in erat viverra ornare. Nunc pellentesque. Sed vestibulum blandit nisl. Quisque elementum convallis purus. Quisque pellentesque semper massa.</p>
<ul>
<li><a href="#">Suspendisse quis gravida massa felis.</a></li>
<li><a href="#">Vivamus sagittis bibendum erat.</a></li>
<li><a href="#">Nullam et orci in erat viverra ornare.</a></li>
<li><a href="#">Suspendisse quis gravida massa felis.</a></li>
<li><a href="#">Curabitur malesuada turpis nec ante.</a></li>
</ul>
<p>Aliquam gravida massa eu arcu. Fusce mollis tristique sem. Sed eu eros imperdiet eros interdum blandit. Vivamus sagittis bibendum erat. Curabitur malesuada turpis nec ante. Suspendisse quis felis. Suspendisse potenti. Nullam et orci in erat viverra ornare. Nunc pellentesque. Sed vestibulum blandit nisl. Quisque elementum convallis purus. Sed vestibulum blandit nisl. Quisque elementum convallis purus. Quisque pellentesque semper massa.</p>
</div>
<div style="clear: both;">&nbsp;</div>
</div>
<div id="footer">
<p>Copyright &copy; 2006 Sitename.com. Designed by <a href="http://freecsstemplates.org"><strong>Free CSS Templates</strong></a></p>
</div>
</body>
</html>


and the default.css is:

body {
background: #AFB3A5;
text-align: justify;
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
font-size: small;
text-align: justify;
color: #555E4F;
}

h1, h2, h3, h4, h5 {
margin: 0;
}

/* Header */

#header {
width: 700px;
height: 100px;
margin: 0 auto;
padding: 0;
border: 10px solid #FFFFFF;
border-bottom: none;
background: #788770;
}

#header h1 {
float: left;
margin: 20px 0 0 20px;
font-size: 50px;
letter-spacing: -7px;
color: #323B2E;
}

#header h2 {
float: right;
margin: 40px 20px 0 0;
font-size: 18px;
letter-spacing: -2px;
}




a {
color: #323B2E;
text-decoration: none;
}

a:hover {
color: #555E4F;
text-decoration: none;
}

/* Menu */

#menu1 {
float: left;
width: 160px;
margin: 0px auto;
padding-bottom: 20px;
text-transform: uppercase;
font-weight: bold;
font-size: 14px;
color: #323B2E;
}

#menu1 ul {
margin: 0px;
list-style: none;
padding: 0px;
}

#menu1 li {
}

#menu1 a {
display: block;
width: 190px;
padding: 15px 0px;
background-color: #788770;
border-top: 1px solid #323B2E;
border-bottom: 1px solid #788770;
text-align: center;
text-decoration: none;
text-transform: uppercase;
font-weight: bold;
color: #FFFFFF;
}

#menu1 a:hover {
background-color: #AFB3A5;
border-top: 1px solid #555E4F;
border-bottom: 1px solid #555E4F;
}

/* Content */

#content {
width: 700px;
margin: 0 auto;
border: 10px solid #FFFFFF;
border-top: none;
background: #E9EAE2;
}

#colOne {
float: left;
width: 190px;
margin-top: 20px;
padding: 0 10px 0 20px;
}

#colTwo {
float: right;
margin-top: 20px;
width: 440px;
padding: 0 20px 0 20px;
}

#content h2 {
margin-bottom: 20px;
font-size: 18px;
letter-spacing: -2px;
}


#footer {
width: 700px;
margin: 0 auto;
padding-top: 20px;
}


#footer p {
text-align: center;
padding: 0;
font-size: 10px;
}




Please help!!! :)
I've added the javascript code in the bottom so you see how the banner looks like.

Excavator
12-08-2006, 01:02 PM
Hello fedlerner,
make your HTML look like this:

<body>
<div id="header">
<h1>x10 Support</h1>
<div id="banner"><script language='JavaScript' type='text/javascript'>
<!--
if (!document.phpAds_used) document.phpAds_used = ',';
phpAds_random = new String (Math.random()); phpAds_random = phpAds_random.substring(2,11);

document.write ("<" + "script language='JavaScript' type='text/javascript' src='");
document.write ("http://x10hosting.com/advert/adjs.php?n=" + phpAds_random);
document.write ("&what=zone:1&target=_blank");
document.write ("&exclude=" + document.phpAds_used);
if (document.referrer)
document.write ("&referer=" + escape(document.referrer));
document.write ("'><" + "/script>");
//-->

</script><noscript><a href='http://x10hosting.com/advert/adclick.php?n=a7fb3e9d' target='_blank'><img src='http://x10hosting.com/advert/adview.php?what=zone:1&n=a7fb3e9d' border='0' alt=''></a></noscript></div>
</div>
<div id="content">

and add this to your .css file:

#banner {
clear: right;
float: right;
height: 100px;
margin: 0px;
padding: 0px;
}

That encloses the banner in a div of it's own and floats that div to the right side of your header.

fedlerner
12-08-2006, 03:47 PM
Oh thanks man!!!
I love you :)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum