Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,472
There are 1919 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     HTML/XHTML/DHTML/CSS :

I cant figure this out!

Thread title: I cant figure this out!
Closed Thread    
    Thread tools Search this thread Display Modes  
11-24-2006, 12:42 AM
#1
BrokenFaith is offline BrokenFaith
BrokenFaith's Avatar
Status: Creatistic
Join date: Jul 2006
Location: Arizona
Expertise:
Software:
 
Posts: 1,726
iTrader: 5 / 100%
 

BrokenFaith is on a distinguished road

Send a message via AIM to BrokenFaith Send a message via MSN to BrokenFaith

  Old  I cant figure this out!

www.click2host.us/index.php

I want to put my 'phpadnews' script banner thing at the very top next to the logo, on the right side, where it displays the ad's there, but I cant figure out where, or how to do it.

Here is my header file:

Code:
<?php

echo <<<EOF
<!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" xml:lang="en" lang="en">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>Click2Host | Free Image Hosting</title>
		<link rel="StyleSheet" href="$site_path/core.css" type="text/css" />
	</head>
	<body>
		<div id="wrapper">
			<h1><a href="/">Click2Host.us</a></h1>
			<div id="navigation">
				<ul>
					<li><a href="/" class="home">Home</a></li>
					<li><a href="/faq.php" class="faq">FAQ</a></li>
					<li><a href="/terms.php" class="tos">TOS</a></li>
					<li><a href="/signup.php" class="register">Register</a></li>
					<li><a href="/donate.php" class="donate">Donate</a></li>
					<li><a href="/stats.php" class="stats">Stats</a></li>
					<li><a href="/advertise.php" class="advertise">Advertise</a></li>
					<li><a href="/contact.php" class="contactus">Contact Us</a></li>
				</ul>
			</div>
			
			<div id="main_content">
			<div id="right_content">
			
			

EOF;

?>
And here is the code I need displayed next to the logo:
Code:
<script language='JavaScript' type='text/javascript' src='http://click2host.us/ads/adx.js'></script>
<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://click2host.us/ads/adjs.php?n=" + phpAds_random);
   document.write ("&amp;what=zone:1");
   document.write ("&amp;exclude=" + document.phpAds_used);
   if (document.referrer)
      document.write ("&amp;referer=" + escape(document.referrer));
   document.write ("'><" + "/script>");
//-->
</script><noscript><a href='http://click2host.us/ads/adclick.php?n=a769bc29' target='_blank'><img src='http://click2host.us/ads/adview.php?what=zone:1&amp;n=a769bc29' border='0' alt=''></a></noscript>
Someone care to help?

11-24-2006, 12:53 AM
#2
Andrew R is offline Andrew R
Status: Request a custom title
Join date: Dec 2005
Location: Arizona
Expertise:
Software:
 
Posts: 5,200
iTrader: 17 / 95%
 

Andrew R is on a distinguished road

  Old

Put it above the <h1> tag and put a div around it.

Should end up looking like this.
Code:
<div style="float:right;">
	<!-- Code -->
</div>
<h1><a href="index.php">Click2Host</a></h1>

11-24-2006, 01:00 AM
#3
BrokenFaith is offline BrokenFaith
BrokenFaith's Avatar
Status: Creatistic
Join date: Jul 2006
Location: Arizona
Expertise:
Software:
 
Posts: 1,726
iTrader: 5 / 100%
 

BrokenFaith is on a distinguished road

Send a message via AIM to BrokenFaith Send a message via MSN to BrokenFaith

  Old

Alright, I did that, and now the site wont even work.

The code is now:
Code:
<?php

echo <<<EOF
<!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" xml:lang="en" lang="en">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>Click2Host | Free Image Hosting</title>
		<link rel="StyleSheet" href="$site_path/core.css" type="text/css" />
	</head>
	<body>
		<div id="wrapper">
		<div style="float:right;">
	        <?php
    if (@include('/mounted-storage/home23a/sub003/sc21745-MTKC/www/ads/phpadsnew.inc.php')) {
        if (!isset($phpAds_context)) $phpAds_context = array();
        $phpAds_raw = view_raw ('zone:1', 0, '', '', '1', $phpAds_context);
        echo $phpAds_raw['html'];
    }
?>

		</div>
			<h1><a href="/">Click2Host.us</a></h1>
			<div id="navigation">
				<ul>
					<li><a href="/" class="home">Home</a></li>
					<li><a href="/faq.php" class="faq">FAQ</a></li>
					<li><a href="/terms.php" class="tos">TOS</a></li>
					<li><a href="/signup.php" class="register">Register</a></li>
					<li><a href="/donate.php" class="donate">Donate</a></li>
					<li><a href="/stats.php" class="stats">Stats</a></li>
					<li><a href="/advertise.php" class="advertise">Advertise</a></li>
					<li><a href="/contact.php" class="contactus">Contact Us</a></li>
				</ul>
			</div>
			
			<div id="main_content">
			<div id="right_content">
			
			

EOF;

?>
AJ. mind unblocking me for like 7 minutes? thay way we dont spam up TFL.

Closed Thread    


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed