-
show a part of an xml file in html
Hi i was wondering if there is away to show a part of an xml based on the time of the day in +8gmt time in HTML?
The web in one word.
-
-
I think I might have something here
Because I got it
Place this straight into the place where u want it.
<!-- Begin Script -->
<script type="text/javascript">
var d = new Date()
var time = d.getHours()
if (time < 8)
{
document.write("<iframe src='xmlfile.xml' width='100' height='100'></iframe>")
}
else
{
document.write("Other file or something else")
}
</script>
<!-- End of Script -->
<!-- Notes:
if (time < 8) means that if the time is past 8 am any time than the file won't show,
Keep the (')s in, they keep the javascript from going boskot *or crazy*.
Enjoy-->
Last edited by Rockonmetal; 01-25-2007 at 06:21 PM.
-
Ok got it working is this script based on the servers time or Perth Western Australia time or the users computer. As i need it if possible to be +8GMT
But i love the script Thanks.
also can i do like every 15 min or does it have to be an hour like we have shows that go for 30min some shows finish at not 100% on the hour can this be done?
Last edited by queerfm; 02-03-2007 at 04:04 PM.
The web in one word.
-
-
also can i do like every 15 min or does it have to be an hour like we have shows that go for 30min some shows finish at not 100% on the hour can this be done?
The web in one word.
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks