Have been working on a "Send a Postcard" page for my new-and-improved
Almonte site, and would appreciate feedback on its functionality from
people using various different browsers and OSs. It's at
http://www.almonte.com/cards/
NOTE: the page is "out of context" at the moment, as I have not yet
completed the new Almonte site -- thus the links on the left of the page
above don't lead anywhere for now. However, the postcard stuff itself
should work OK (I hope.) Thus if you send a test postcard it should either
be to yourself or to me, for now.
Also, I need some Perl/Javascript help with the page.
At present I have it set so that if a user selects a MIDI file to go with a
postcard, the MediaPlayer console plus a link to the song being played will
display in the left column of the page. However, if a user does not select
a tune, you'll still see a blank space where the MediaPlayer console would
display, and text reading
Current music file:
(Right-click to save to your disk)
i.e., just a blank where the filename would go (obviously.)
What I'm trying to figure out is how to make the display of the console
and accompanying text *conditional*; that is, if the field 'midifile' returns
a value other than null, display them, otherwise don't. Can't seem to get
the syntax right...
Below is the Javascript that launches the MIDI file, and after that the
relevant HTML that displays the song name
<!--
if(navigator.userAgent.indexOf("MSIE") != -1)
document.writeln ('');
else
document.writeln ('<EMBED SRC="$BASEURL/$fields{'midifile'}"
AUTOSTART="true" HIDDEN="false" VOLUME="50" WIDTH="145"
HEIGHT="15" VOLUME="50" CONTROLS="smallConsole">');
//-->
[snip]
Current music file:<br>
<a href=$BASEURL/$fields{'midifile'}>
$fields{'midifile'}
</a>
<br>(Right-click to save to your disk)
-----------
Brent Eades, Almonte, Ontario
E-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED]
Town of Almonte site: http://www.almonte.com/
Business site: http://www.federalweb.com
____________________________________________________________________
--------------------------------------------------------------------
Join The Web Consultants Association : Register on our web site Now
Web Consultants Web Site : http://just4u.com/webconsultants
If you lose the instructions All subscription/unsubscribing can be done
directly from our website for all our lists.
---------------------------------------------------------------------