11-07-2006, 01:12 PM
hellow, will i started a project taht required me to ahve a page setup like this.
first i have a few link on the page, i want those links to be clicked on with js and opened in an iframe and then do it all over again with a set timer
anyone know how to get this going?
There is more than one to achieve this. the following is one way to do this.
1- create a function in JavaScritp.
function populateFrame( id, contents)
// note id, represents the iframe's id.
// note contents, repsents the new contents.
var my_iframe = window.document.getElementById( id );
my_iframe.src = contents;
2- create another function with the timer, and have it call the first function.
function timer_func( time_in_sec )
setTimeout( "populateFrame('id_value', 'contents_value' )", time_in_sec );
11-08-2006, 02:33 AM
hhhmmm for some reason im still haveing trouble getting this.
would it be possible if you can make a small html, that will do the following; then i will look at code and modify after i see how its supose to be.
cuz this is an example, can you make a simple page with 4 iframes
the iframe links can be anything, like
then on of page there could be 4 hyperlinks
google *to google page*
msn *to msn page*
yahoo *to yahoo page*
ask *to ask page*
so now the page is setup,
sorry if i seem damanding but i couldn't figure it out