How to embed JavaScript in PHP within div (in an include file)?
<p>I'm trying to get an image to display in a div depending on the URL of the page. This div is in an include file that gets used for all pages of the website. What I want is if it's the homepage (with or without index.php), is for the div to show the image. What I've pieced together so far is:</p>

<pre><code>&lt;script type="text/javascript"&gt;
var d = location.href

if (d="website.com" || "website.com/index.php") 
{
&lt;img src="/images/DSLogo2.jpg" /&gt;;
}
&lt;/script&gt;
</code></pre>

<p>I'm not sure if this is correct, or even the best way to go about it. Any help is very greatly appreciated, as I am still learning more and more each day.</p>
