Vern this happens to me as well. It's probably nothing you're
doing, it's nothing I'm doing in my case. Some hosts' server
software I guess, or the hosting software (like "Cpanel" for
instance) is evidently screwing up scripts within the HTML
code. In my case, something is removing the </script> tags and
replacing them with </s ipt> or something like that, which of
course renders the tag erroneous. All you can do, (what I do)
is put the working code in a Notepad, and when the site messes
up just copy and paste the working code back into the HTML code
of the webpage. It hasn't happened to me in a pretty long
time, so maybe my hosts got it worked out. They said they
never knew what would be causing it though.
I don't know JavaScript, but looking at your page I see some
kind of "place holder" where something should be (IE6). I
can't find that area in the HTML code, it looks like the whole
page is in some kind of "script referral" for lack of a better
term since I can't even find any text on the main frame in it's
own HTML source code. However, that "missing thing" on the
page could be that tag you mention:
<embed src="DanSugar.mid" align="baseline" border="0"
width="51" height="15"
controls="smallconsole" autostart="true" loop="true">
..since the larger of that missing area shows that tiny icon
that's usually indicative of a missing "object" (not image but
missing "object"), plus the dimensions within that tag match
the outline of the smallest of the 'placeholders' I see, (to
the right of the missing object that has the icon, just an
empty border). You may try and put it back above the </script>
tag and see if it works. If it does, then save that copy for
when it acts up again.
Yep, I see this above the close of the tag:
document.write("A BEAUTIFUL MIDI: <b>"+ranmidi()+"</b><br><br>"
+"<EMBED src="+ranmidi()+" Width=200 Height=55
autostart=true>")
//-->
..and that matches the dimensions of the largest of the
placeholders. Try and put that "orphaned" area of the tag back
within the script tag.
-Clint
God Bless Us All
Clint Hamilton, Owner
http://OrpheusComputing.com )
----- Original Message -----
From: "Vern" <[EMAIL PROTECTED]>
The script below worked at one time but it appears I've messed
it up or the
free web hosting sites won't run it. Is the "var currentdate=0"
and the other
date stuff messing things up, I don't know what they are doing
there. Also the
last two lines, should they be within the begin and end script
codes?
<script language=> and </script>
The script is suppose to play midi files on the web page,
randomly picking a
midi each time the page is viewed.
On the web page you can see "A BEAUTIFUL MIDI:
DebClardeLu.mid" printed
out but there is no sound. If you want to see the page the link
is
http://www.europe.faithweb.com
Thanks,
Vern
---------------------------------------------------------------
----------
<script language="Javascript">
<!--
// please keep these lines on when you copy the source
// made by: Nicolas -
//http://www.geocities.com/ResearchTriangle/1500
var currentdate = 0
var theranmidi = " "
var core = 0
function StringArray (n) {
this.length = n;
for (var i =1; i <= n; i++) {
this[i] = ' '
}
}
midi = new StringArray(10)
midi[0] = 'BeFurElise.mid'
midi[1] = 'DebClardeLu.mid'
midi[2] = 'miniover.mid'
midi[3] = 'wooden.mid'
midi[4] = '1941G.MID'
midi[5] = 'han_gav.mid'
midi[6] = 'titanic1.mid'
midi[7] = 'DanSugar.mid'
midi[8] = 'titanic2.mid'
midi[9] = 'WHITE.MID'
ran = 60 / midi.length
function ranmidi() {
currentdate = new Date()
core = currentdate.getSeconds()
adcore = Math.floor(core/ran)
core = adcore
theranmidi = midi[core]
return (theranmidi)
}
document.write("A BEAUTIFUL MIDI: <b>"+ranmidi()+"</b><br><br>"
+"<EMBED src="+ranmidi()+" Width=200 Height=55
autostart=true>")
//-->
</script>
<embed src="DanSugar.mid" align="baseline" border="0"
width="51" height="15"
controls="smallconsole" autostart="true" loop="true">
============= PCWorks Mailing List =================
Don't see your post? Check our posting guidelines &
make sure you've followed proper posting procedures,
http://pcworkers.com/rules.htm
Contact list owner <[EMAIL PROTECTED]>
Unsubscribing and other changes: http://pcworkers.com
=====================================================