Jump to content

CrAzEd

Members
  • Posts

    8
  • Joined

  • Last visited

CrAzEd's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. Nope i got Parse error: syntax error, unexpected '{' in /home/rpahost/public_html/ryan/am_l/index.php on line 15
  2. Perhaps there is a problem with javascript and php? it worked perfectly before i added the php, and the code hasnt changed. Im using a system for the main text section, using [code]<?php if ($_GET['v'] == '') { $page = "phpbody/home.php"; } elseif ($_GET['v'] == '1') { $page = "phpbody/contact.php"; } elseif ($_GET['v'] == '2') { $page = "phpbody/limousines.php"; } elseif ($_GET['v'] == '3') { $page = "phpbody/about.php"; } elseif ($_GET['v'] == '4') { $page = "phpbody/sthummer.php"; } elseif ($_GET['v'] == '5') { $page = "phpbody/suv.php"; } elseif ($_GET['v'] == '6') { $page = "phpbody/bmw.php"; } elseif ($_GET['v'] == '7') { $page = "phpbody/hummerh2.php"; } elseif ($_GET['v'] == '8') { $page = "phpbody/gallery.php"; } ?> in the head, and this <?php include ("$page"); ?> to add the page. I hope you understand what i mean. Here is an example of the javascript. - if (document.images) { pic1on= new Image(); pic1on.src="images/limousines_over.gif"; pic1off= new Image(); pic1off.src="images/limousines_up.gif"; } Those link to the images, and this is the load/unload - function lightup(imgName) { if (document.images) { imgOn=eval(imgName + "on.src"); document[imgName].src= imgOn; } }function turnoff(imgName) { if (document.images); { imgOff=eval(imgName + "off.src"); document[imgName].src= imgOff; } } As i said before, this worked perfectly before i added the php above.
  3. The linking is just the easiest way to get help. That is my site, the one i want fixed. And supposedly the100,45 are width-height. I dont know if they are needed or not.
  4. http://rpahosting.com/ryan/am_l/index.php?v=http://rpahosting.com/ryan/am_l/index.php?v=Why arn't my javascript rollovers working.Link for css and js - http://rpahosting.com/ryan/am_l/scripts/js.jshttp://rpahosting.com/ryan/am_l/scripts/style.cssPlease help me.
  5. Here is the code for the working version if anyone wishes to see how i implemented it.HTML = <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title> American SUV Limousines :: Index </title> <LINK REL="stylesheet" TYPE="text/css" HREF="style.css"> <meta name="author" content="Keith P, RPA Hosting"> </head> <body class="a"> <br><br> <table class="a" cellpadding="0" cellspacing="0" border="0" align="center"> <tr> <td class="a" colspan="2"> <img src="images/header.jpg" class="a"> </td> </tr> <tr> <td class="b" colspan="2"> <img src="images/headbelow.jpg" class="b"> </td> </tr> <tr> <td class="c" background="images/topsect.jpg" colspan="2"> </td> </tr> <tr> <td width="172" valign="top"> <table class="b" border="0" cellpadding="0" cellspacing="0"> <tr> <td class="d" valign="top" background="images/linksect.jpg"> <p class="a"> <a href="*.html"> Link1 </a><br> <a href="*.html"> Link2 </a><br> <a href="*.html"> Link3 </a><br> <a href="*.html"> Link4 </a><br> <a href="*.html"> Link5 </a><br> </p> </td> </tr> <tr> <td width="172" height="18" valign="top"> <img src="images/linkbot.jpg" class="c"> </td> </tr> <tr> <td class="g"> </td> </tr> </table> </td> <td class="e" background="images/mainsect.jpg" valign="top"> <p class="a"> MainText <br><br><br><br><br><br><br><br><br><br><br><br><br><br><br> <br><br><br><br><br><br><br><br><br><br><br><br><br><br><br> </p> </td> </tr> <tr> <td class="g"> </td> <td class="i" colspan="2"> <img src="images/bottommain.jpg" class="d"> </td> </tr> <tr> <td class="j" colspan="2" background="images/bottom.jpg" align="center"> <font size="1" face="Times New Roman"> copyright ® 2006 rpahosting.com (southern pchelp network) </font </td> </tr> </table> </body></html> And css body.a { background:#4f4f50; color:#FFFFFF }a:link, a:visited, a:active { color:#00038a; background:none; }a:hover { color:#a01313; background:none; }p.a { padding-left:20px; padding-top:10px; padding-bottom:20px; padding-right:20px; }table.a { width:800px; }table.b { width:172px; }img.a { width:800px; height:149px; }img.b { width:800px; height:29px; }img.c { width:172px; height:18px; }img.d { width:628px; height:18px; }img.e { width:800px; height:7px; }td.a { height:149px; width:800px; }td.b { width:800px; height:29px; }td.c { width:800px; height:11px; }td.d { height:200px; width:172px; } td.e { width:628px; }td.f { width:172px; height:18px; }td.g { width:172px; }td.h { width:172px; height:16px; }td.i { width:628px; height:16px; }td.j { width:800px; height:7px; } Again thanks for the help
  6. Sure thanks a bunch. Wil use this technique for later sites
  7. Ok i am in the process of making a website for a friends buisness. Here is the code for the page - <html><head><title> American SUV Limousines :: Index </title><LINK REL="stylesheet" TYPE="text/css" HREF="style.css"><meta name="author" content="Keith P"></head><body class="a"><br><br><table cellpadding="0" cellspacing="0" border="1" width="800" align="center"> <tr> <td class="a" colspan="2"> <img src="images/header.jpg" height="149" width="800" border="0"> </td> </tr> <tr> <td class="b" colspan="2"> <img src="images/headbelow.jpg" height="29" width="800" border="0"> </td> </tr> <tr> <td class="c" colspan="2" background="images/topsect.jpg"> </td> </tr> <tr> <td class="d" background="images/linksect.jpg" valign="top"> <p class="a"> <a href="*.html"> Link1 </a><br> <a href="*.html"> Link2 </a><br> <a href="*.html"> Link3 </a><br> <a href="*.html"> Link4 </a><br> <a href="*.html"> Link5 </a><br> </p> </td> <td class="e" background="images/mainsect.jpg" rowspan="3" valign="top"> <p class="a"> <br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br> <br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br> </p> </td> </tr> <tr> <td class="f" valign="top"> <img src="images/linkbot.jpg" width="172" height="18"> </td> </tr> <tr> <td class="g"> </td> </tr> <tr> <td class="h"> </td> <td class="i"> <img src="images/bottommain.jpg" width="628" height="18" border="0"> </td> </tr> <tr> <td class="j" colspan="2"> <img src="images/bottom.jpg" height="7" width="800" border="0"> </td> </tr></table></body></html> And the CSS - body.a { background:#4f4f50; color:#FFFFFF }a:link, a:visited, a:active { color:#00038a; background:none; }a:hover { color:#a01313; background:none; }p.a { padding-left:20px; padding-top:10px; padding-bottom:20px; padding-right:20px; }td.a { height:149px; width:800px; }td.b { width:800px; height:29px; }td.c { width:800px; height:11px; }td.d { height:200px; width:172px; } td.e { width:628px; height:auto; }td.f { width:172px; height:18px; }td.g { width:172px; height:auto; }td.h { width:172px; height:16px; }td.i { width:628px; height:16px; }td.j { width:800px; height:7px; } In IE the left box for the Links (td.d) expands with the main (td.e) and the box that's meant to expand is fixed (td.g). But in firefox this is PERFECT. Because majority of people use IE 6 i have to fix this. How?Thanks. PS. Why cant i just upload an image to insert, rather than u'ling to a domain then linking
×
×
  • Create New...