Emmanize
09-01-2006, 04:51 PM
Sorry I haven't learnt JS, so I am not too sure what the problem is. :o
I am trying to get a small pop up window via a link. I have the script for it, but I don’t want to embed it into the head of my HTML. I have linked it in the root folder but it doesn’t work. It only works when it’s embedded.
I don’t want to post my code again so I will post relevant code instead.
The code is located in a folder called javaScript, and the file is called popup.js
So I have this is my html
<div id="popup">
<script type="text/javascript" src="javascript/popup.js"></script>
</div>
(though I have a small feeling it might be something in that path that is wrong)
Maybe it’s the location of the div?
<div id= "center"><img src="images/pa*****ner2.jpg" /></div>
<div id="text-content">
<h4> Tour</h4>
<h3>Appearances</h3>
<p>blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah </p>
<a href="app_moreinfo.htm" onclick="NewWindow(this.href,'name','400','400','yes');retu rn false">View More...</a>
<div id="popup">
<script type="text/javascript" src="javascript/popup.js"></script>
</div>
</div>
Oh and keep the reply simple LOL.
I am trying to get a small pop up window via a link. I have the script for it, but I don’t want to embed it into the head of my HTML. I have linked it in the root folder but it doesn’t work. It only works when it’s embedded.
I don’t want to post my code again so I will post relevant code instead.
The code is located in a folder called javaScript, and the file is called popup.js
So I have this is my html
<div id="popup">
<script type="text/javascript" src="javascript/popup.js"></script>
</div>
(though I have a small feeling it might be something in that path that is wrong)
Maybe it’s the location of the div?
<div id= "center"><img src="images/pa*****ner2.jpg" /></div>
<div id="text-content">
<h4> Tour</h4>
<h3>Appearances</h3>
<p>blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah </p>
<a href="app_moreinfo.htm" onclick="NewWindow(this.href,'name','400','400','yes');retu rn false">View More...</a>
<div id="popup">
<script type="text/javascript" src="javascript/popup.js"></script>
</div>
</div>
Oh and keep the reply simple LOL.