Hello there.
Im using Ajax ticker script found here:
Code:
http://www.dynamicdrive.com/dynamicindex17/rsstickerajax/index.htm
What i want to do is to include output on some other domain (site). I try that, but it wont work. I added this code to other site:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<link rel="stylesheet" type="text/css" href="http://samo-opusteno.info/servisi/style.css" />
<script src="http://samo-opusteno.info/servisi/vesti.js" type="text/javascript">
//vesti by samo-opusteno.info
</script>
</head>
<body>
<div style="height: 225px">
<script type="text/javascript">
new opusteno_vesti("SO", 1000, "vestiopis2", "box2", 8000, "description")
</script>
</div>
<div style="height: 225px">
<script type="text/javascript">
new opusteno_vesti("SO", 1000, "vestiopis", "box2", 8000, "date+description")
</script>
</div>
<div style="height: 225px">
<script type="text/javascript">
new opusteno_vesti("SO", 1000, "vest", "box1", 3000, "date")
</script>
</div>
<div style="height: 225px">
<script type="text/javascript">
new opusteno_vesti("SO", 1000, "opusteno", "box1", 3000, "")
</script>
</div>
</body>
</html>
That code work wherever i add it on my domain where script files are, but wont work on other domain.
In head u can see that js script is called:
Code:
http://samo-opusteno.info/servisi/vesti.js
And there (in that js file on server) is a code:
Code:
//Relative URL syntax:
var lastrssbridgeurl="http://samo-opusteno.info/servisi/lastrss/bridge.php"
//Absolute URL syntax. Uncomment below line if you wish to use an absolute reference:
var lastrssbridgeurl="http://"+window.location.hostname+"/servisi/lastrss/bridge.php"
And thats the problem. It never loads the right "bridge.php" file because of that. I dont know how to set the right path so that file will be included on other domains too...
Any help would be appreciated.
Regards.
Dzonny