Menu
I know that you can call a php script using javascript. For example:
[code=html]
<script type=”text/javascript” src=”myscript.php”></script>
I need to call an external script from within a javascript function.
[code=html]
<script type=”text/javascript”>
function rotateimages(){
document.getElementById(“slideshow”).setAttribute(“src”, <!– call script –>)
}
window.onload=function(){
setInterval(“rotateimages()”, 5000)
}
</script>
So how do I call the external script there?