Board index   FAQ   Search  
Register  Login
Board index php forum :: HTML JavaScript

HTML in header of php file using external jscript

Javascript coding ..

Moderators: macek, egami, gesf

HTML in header of php file using external jscript

Postby Vermillien » Sat Jan 10, 2004 5:09 pm

I've added an HTML header to the top of a PHP page, and the header calls an external javascript file for the rollovers. But when I view the page, I have to roll over the images to see them. I'm not talking about the over states, but the normal states that are not shown until rolled over initially.

Am I missing something in the header of my php script? Or should I just add a pre-load images thingy up there?

The php script is actually outputting a .cgi page. (sorry, I'm very new to php and cgi, so don't know the correct terminology yet)

I've never seen this before, and don't know what it means.
Any ideas?

Thanks in advance!
New php-forum User
New php-forum User
Posts: 3
Joined: Sat Jan 10, 2004 2:00 pm
Location: Northeastern PA

Postby liquedus » Sat Jan 10, 2004 8:54 pm

Post some code, because your question does not give enough information for someone to give you a concrete solution.
php-forum Active User
php-forum Active User
Posts: 266
Joined: Tue Apr 08, 2003 5:18 am
Location: Ottawa, Canada

Here's the header code...

Postby Vermillien » Sat Jan 10, 2004 9:02 pm

Sorry 'bout that! Here is the code inserted in the header of the .cgi page:

Code: Select all


<title>Custom Tile Installation of Natural Stone Tile</title>
      <meta name="description" content="Professional custom tile installation in NJ and PA with artistic design and precision. View our photo gallery for tile ideas and advice on choosing tile for your project!">
      <meta name="keywords" content="tile installation NJ, tile photos, tile advice, ceramic, bathroom, kitchen, installer, contractor, tile installation in PA, backsplash, mexican, porcelain, artistic design, NJ installation, PA installer, mosaic, natural stone tile">
      <meta name="robots" content="INDEX, FOLLOW">
      <meta name="rating" content="general">
      <meta name="revisit-after" content="15-days">
      <link href="" rel="stylesheet" media="screen">
      <script language="JavaScript" src="" type="text/javascript"></script>

   <body leftmargin="0" marginheight="0" marginwidth="0" topmargin="0">
                <div align="center">
         <table width="795" border="0" cellspacing="0" cellpadding="0">
            <tr height="184">
               <td width="335" height="184"><a href="#" OnMouseOut="m_out('logo')" OnMouseOver="m_over('logo')"><img src="images/logo.gif" height="184" width="334" name="logo" border="0" alt="Sundown Tile - Professional Custom Tile Installation"></a></td>
               <td width="282" height="184"><img src="" alt="Jacuzzi platform tile" height="184" width="282" /></td>
               <td rowspan="2" width="179" height="207"><img src="" alt="Tile portfolio, photos" height="207" width="179" border="0"></td>
            <tr height="23">
               <td colspan="2" valign="bottom" width="617" height="23">
                     <table width="196" border="0" cellspacing="0" cellpadding="0">
                           <td><a href="" OnMouseOut="m_out('portfolio')" OnMouseOver="m_over('portfolio')"><img src="images/portfolio.gif" alt="Tile Portfolio" width="124" height="23" name="portfolio" border="0"></a></td>
                           <td><a title="Tile Advice" href="" OnMouseOut="m_out('advice')" OnMouseOver="m_over('advice')"><img src="images/advice.gif" alt="Tile Advice and Ideas" width="123" height="23" name="advice" border="0"></a></td>
                           <td><a title="Services" href="" OnMouseOut="m_out('service')" OnMouseOver="m_over('service')"><img src="images/service.gif" alt="Tile Services" width="123" height="23" name="service" border="0"></a></td>
                           <td><a title="Links" href="" OnMouseOut="m_out('link')" OnMouseOver="m_over('link')"><img src="images/link.gif" alt="Tile Contractors, Designers, Suppliers in NJ" width="123" height="23" name="link" border="0"></a></td>
                           <td><a title="Contact" href="" OnMouseOut="m_out('contact')" OnMouseOver="m_over('contact')"><img src="images/contact.gif" alt="Contact us for your tile installation project" width="123" height="23" name="contact" border="0"></a></td>
            <tr height="405">
               <td colspan="3" valign="top" bgcolor="#cccc99" width="795" height="405">

The external javascript file is working properly on all other pages in the site, as well as another PHP script (ending in .php, not .cgi) I am noticing that the .php page has no problems, but this .cgi page is having a problem.

Here is a link to the page itself:

New php-forum User
New php-forum User
Posts: 3
Joined: Sat Jan 10, 2004 2:00 pm
Location: Northeastern PA

Fixed the problem...

Postby Vermillien » Sun Jan 11, 2004 2:43 pm

When I moved the directory out into the root, the images were loading correctly! Before, they were having trouble. But since the files are still in different directories themselves (for instance, the script is within a directory, and the images in another) I still had to call the images using the full http path from the script.
New php-forum User
New php-forum User
Posts: 3
Joined: Sat Jan 10, 2004 2:00 pm
Location: Northeastern PA

Return to JavaScript

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.