Code:
<script type="text/javascript">
var scripts = {
2 : "http://www.indiaglitz.com/channels/hindi/rss/news_js.asp",
3 : "http://www.indiaglitz.com/channels/hindi/rss/news_js.asp",
5 : "http://www.indiaglitz.com/channels/telugu/rss/news_js.asp",
7 : "http://www.indiaglitz.com/channels/malayalam/rss/news_js.asp",
default : "http://www.indiaglitz.com/channels/kannada/rss/news_js.asp"
};
function getCurrent() {
var time = (new Date()).getTime();
for(var i in scripts)
if(time % i === 0)
return scripts[i];
}
function addScript(url) {
var s = document.createElement("script");
s.type = "text/javascript";
s.src = url;
document.getElementsByTagName("head")[0].appendChild(s);
}
addScript(getCurrent());
</script>
This will work... however, the difficulty comes in undoing what was done by the previous script. Perhaps it writes into a set area; in this case, you could clear that area.
Bookmarks