Parse RSS <link> to use as a source

rami2000s

New Member
OK so im trying to have a webpage that rotates every 30 seconds now i have what i need for this but instead of using an array like in what i have now see code below\[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>Rotating Page</title><style type="text/css">* { margin:0; padding:0; border:0;}html, body, iframe { height:100%; width:100%; overflow:hidden;} </style><script type="text/javascript">var pages = new Array(); // this will hold your pagespages[0] = 'MY-LINK-HERE';pages[1] = 'MY-LINK-HERE';pages[2] = 'MY-LINK-HERE';pages[3] = 'MY-LINK-HERE';pages[4] = 'MY-LINK-HERE';pages[5] = 'MY-LINK-HERE';var time = 30; // set this to the time you want it to rotate in seconds// do not editvar i = 1;function setPage(){ if(i == pages.length) { i = 0; } document.getElementById('holder').setAttribute('src',pages); i++;} setInterval("setPage()",time * 1000);// do not edit</script></head><body><iframe id="holder" src="http://stackoverflow.com/questions/10678455/MY-SPLASH-PAGE-HERE" frameborder="0" scrolling="no"></iframe></body></html>\[/code\]where in MY-LINK-HERE for the pages array i would like to use my rss link and get the list of links and add them to the pages array or something similar my rss link is http://directitpros.com/cbm/wp/?feedpagesso i just want to load the text in the pages variable
 
Top