Topic awaiting preservation: Solution for Easy Input of banners |
|
---|---|
Author | Thread |
Paranoid (IV) Inmate From: Lost Angeles Kalifornia, via Hawaii.... |
posted 02-21-2010 07:56
Got an issue I'm trying to figure out the best solution for. Here's the scenario... |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
posted 02-23-2010 19:05
You should basically do the same thing as your partner does using <script> tag to include javascript file that will simply perform a couple of document.write(); statements that will include your banner. An example: code: document.write('<img src="http://www.yoursite.com/banner001.png">');
code: <script src="http://www.yoursite.com/banner.php"></script> |
Obsessive-Compulsive (I) Inmate From: |
posted 03-26-2010 18:15
Better yet could you not have a div element that you could stick your banner into rather than using document.write? code: <div id="banner_div"> </div> <script>getdiv = document.getElementById("banner_div"); getdiv.innerHTML = "<img src='myimage.jpg' />"; </script>
|