johnboy0072006
09-06-2011, 10:36 AM
hmmm .... sort of stumped.
For a test, I made a script that pulls a random "bumper-sticker" quote
out of a file and sends it back as Javascript.
Put this on a test page of yours and see what happens:
<script type="text/javascript" src="http://www.catpin.com/bumper_sticker3.php"></script>
Wherever that line is, when you view your web page, it should have a random quote.
It's using the same code that I had above (in post #2).
how would you put <script type="text/javascript" src="http://www.catpin.com/bumper_sticker3.php"></script> into a function for javascript to call this php file?
For a test, I made a script that pulls a random "bumper-sticker" quote
out of a file and sends it back as Javascript.
Put this on a test page of yours and see what happens:
<script type="text/javascript" src="http://www.catpin.com/bumper_sticker3.php"></script>
Wherever that line is, when you view your web page, it should have a random quote.
It's using the same code that I had above (in post #2).
how would you put <script type="text/javascript" src="http://www.catpin.com/bumper_sticker3.php"></script> into a function for javascript to call this php file?