Hello,
I have an (in my opinion) awkward problem with Javascript. I include a file from a different site (actually it's a banner). The include banner contains images, and since they need to be displayed on a different domain I put the full path to the images in my Javascript. It looks like this:
.....
document.write ('<TD><A HREF="javascript
opitup();"><IMG SRC=" WIDTH=79 HEIGHT=60 ALT="Stembutton"></A></TD>');
....
I include the file on the remote site like this:
<BODY>
...
<script language="Javascript" src="...
</BODY>
The banner shows up correctly, but for some reason the "<img src" from the included file has been converted to a relative one, like this:
document.write ('<TD><A HREF="javascript
opitup();"><IMG SRC="/salesportal/pix/stem.gif" WIDTH=79 HEIGHT=60 ALT="Stembutton"></A></TD>');
Which means it will look for the images on the site where the banner is included instead of the place where the banneris hosted. So no images show up.
Does somebody have a clue, because I am no Javascript hereo and I really don't know what the **** is going on here.
Greetz,
Gert
Gert
I have an (in my opinion) awkward problem with Javascript. I include a file from a different site (actually it's a banner). The include banner contains images, and since they need to be displayed on a different domain I put the full path to the images in my Javascript. It looks like this:
.....
document.write ('<TD><A HREF="javascript
....
I include the file on the remote site like this:
<BODY>
...
<script language="Javascript" src="...
</BODY>
The banner shows up correctly, but for some reason the "<img src" from the included file has been converted to a relative one, like this:
document.write ('<TD><A HREF="javascript
Which means it will look for the images on the site where the banner is included instead of the place where the banneris hosted. So no images show up.
Does somebody have a clue, because I am no Javascript hereo and I really don't know what the **** is going on here.
Greetz,
Gert
Gert