Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Oct 2006
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation HTML & CSS help.

    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":

    Code:
    <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>
    Last edited by fedlerner; 12-08-2006 at 04:15 AM.

  • #2
    New to the CF scene
    Join Date
    Oct 2006
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts
    The index.html code is:
    Code:
    <!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:
    Code:
    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.

  • #3
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,667
    Thanks
    22
    Thanked 1,827 Times in 1,811 Posts
    Hello fedlerner,
    make your HTML look like this:
    Code:
    <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:
    Code:
    #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.
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • #4
    New to the CF scene
    Join Date
    Oct 2006
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Oh thanks man!!!
    I love you


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •