what is supposed to happen is that each month the inline frames page changes

A

AM

..
..
..
..
<SCRIPT LANGUAGE="Javascript"><!--
// Get today's current date.
var now = new Date();
// Array list of months.
var months = new
Array('january','february','march','april','may','june','july','august','september','october','november','december');
// Join it all together
today = months[now.getMonth()]+'.htm';
//--></SCRIPT>

<iframe name="mainpage" width="778" height="537" src=today
scrolling="no" align="top">
Your browser does not support inline frames or is currently configured not
to display inline frames.</iframe>
..
..
..
..




above is the code i am trying to change, it has a page the opens in a
inline frame.

the iframes........... src=today which is the month that is need to be
displayed but it will not work

someone has said that i need to 'write' it to the html ?? how?

how do i write a variable at this point, which is outside the javascript.?

thank you


what is supposed to happen is that each month the inline frames page
changes.
 
R

Ronx

Try

Replace

<iframe name="mainpage" width="778" height="537" src=today
scrolling="no" align="top">
Your browser does not support inline frames or is currently configured not
to display inline frames.</iframe>

with:
<script type="text/javascript">
document.write("<iframe name=\"mainpage\" width=\"778\" height=\"537\"
src=\"" + today + "\" scrolling=\"no\" align=\"top\">")
document.write("Your browser does not support inline frames or is currently
configured not
to display inline frames.</iframe>")
</script>


Note that a width of 778px for the iFrame will cause left-right scrolling in
over a third of browsers in use today.
 
A

AM

Thank you.


Ronx said:
Try

Replace

<iframe name="mainpage" width="778" height="537" src=today
scrolling="no" align="top">
Your browser does not support inline frames or is currently configured not
to display inline frames.</iframe>

with:
<script type="text/javascript">
document.write("<iframe name=\"mainpage\" width=\"778\" height=\"537\"
src=\"" + today + "\" scrolling=\"no\" align=\"top\">")
document.write("Your browser does not support inline frames or is
currently configured not
to display inline frames.</iframe>")
</script>


Note that a width of 778px for the iFrame will cause left-right scrolling
in over a third of browsers in use today.

--
Ron Symonds (Microsoft MVP - FrontPage)
Reply only to group - emails will be deleted unread.


AM said:
.
.
.
.
<SCRIPT LANGUAGE="Javascript"><!--
// Get today's current date.
var now = new Date();
// Array list of months.
var months = new
Array('january','february','march','april','may','june','july','august','september','october','november','december');
// Join it all together
today = months[now.getMonth()]+'.htm';
//--></SCRIPT>

<iframe name="mainpage" width="778" height="537" src=today
scrolling="no" align="top">
Your browser does not support inline frames or is currently configured
not
to display inline frames.</iframe>
.
.
.
.




above is the code i am trying to change, it has a page the opens in a
inline frame.

the iframes........... src=today which is the month that is need to be
displayed but it will not work

someone has said that i need to 'write' it to the html ?? how?

how do i write a variable at this point, which is outside the
javascript.?

thank you


what is supposed to happen is that each month the inline frames page
changes.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top