|
SAMPLE CODE FOR YOUR WEBPAGE
Following is an example of code for your webpage link sonification.The procedures used in this tutorial can only be used when you have an external website space provider that allows linking to sound files for WebTV PageBuilder webpages; because the WebTV PageBuilder scrapbook can store images, but cannot store sound files!
This tutorial is a PageBuilder Script Method Advanced Editor webpage with an extended head tag containing scripts, CSS styles for custom bgcolor and link colors, additional meta tags, a relocated title tag, and a new body with transition code. Use the source code viewer at the bottom of this webpage to see the structure of the script comment tags that block out the PB built-in body tag so a new custom body can be added. For more information on the PB AE script method, check out my tutorial.
In the code below; first is the suggested WebTV javascript bug alert, next is the short one-line javascript function, and last in the code is the link code that calls the sound effects.
Use the code below as a basic template for your own webpage images and links sonification. Use and modify the code anyway you like. Typically; you would put the script function code and embeds in a text box at the top of your document, and place the links code anywhere desired in the body of the document. Place the embeded sound files code, and rollover image preload code at the top of your document so the files will be begin to be loaded first; because with our slow WebTV browser's processors and memory functional capacity, will have to be downloaded before your webpage content begins to appear.
My suggested sonification code for your sonified image and links webpage, is:
First use a WebTV javascript bug warning the sonified links and image rollovers will not work without javascript working correctly in your browsers!
<div align="center"> <font color="red"> <noframes> <limittext value="WebTV Javascript Bug Warning Reload (Cmd-R)!"> </noframes> </font> </div> <br> <br>
Note: The above bug alert uses the popular "noframes" tag method, and also uses the propretary WebTV "limittext" tag so that only WebTV browsers see the text between the noframes tags. Computer users with "frames-disabled" will not see the noframes tag content because the WTV bug is only for WebTV; and further, why flash a noframes bug alert visible to computers when this document is not a frameset webpage?
Then, after your rollover image preload tags as explained above, add all your embed sound files near the top of the document, like this:
<embed src="http://www.yourserver.com/username/foldername/filename.wav" hidden="true" autostart="false"> <embed src="http://www.yourserver.com/username/foldername/filename.wav" hidden="true" autostart="false"> ... etc.
Then add this simple javascript function to call the various sounds you use for your sonified links, like this:
<script language="javascript"> function playSound(effect) {document.embeds[effect].play();} </script>
You should place this script at the top of your document with all your other scripts. But, it really doesn't matter, just so you write the function ahead of where it will be "called" in your document.
Then code your links anywhere you want sonified links in your document; as an example, from the first four sonified links above, like this:
<a href="http://www.yourserver.domain/username/folder/filename.html" onMouseOver="playSound(0)" onClick="playSound(1)">link name here</a> <a href="http://www.yourserver.domain/username/folder/filename.html" onMouseOver="playSound(2)" onClick="playSound(3)">another link here</a> ... etc.
In the code above, the mouseover and onclick event handlers "call" the number of the sound file listed in the "playSound(?)" function call operator parenthesis. The sound files are sequentially numbererd in the embeds array according to how they are listed in the embeds HTML code.
Note: Throughout this tutorial, I use the "javascript:void()" operator that you see in the source code for the sonified links in this demo. The "javascript:void()" operator surpresses the "href-seek" function of the <a> tag, but invokes the "onMouseOver" and "onClick" (and also "onMouseOut" if used) events in the dummy link. Typically, you would have real navigational links in the code above instead of the "javascript:void()" operator I used in the demo. Also, the above code could be used around images instead of the text link names, and would give a distintive sound associated with the image, when moused over or clicked see the image sonification code example discussed above.
USING COMMENT TAGS IN PAGEBUILDER JAVASCRIPT
Now, here's a note about a "quirky" way PageBuilder handles javascript in our webpages. As many of you may notice, I did not use HTML comment tags (<!-- script text here // ->) to hide my javascript in the extended head tag of this document! Why? Because PageBuilder does not support the HTML comment tags in javascript in PageBuilder "Add text" boxes, while the use of comment tags in style code is fully supported. I'm sure many of you will notice this deficiency, and assume I erronously left the comment tags to hide the script out; but, not so that's the way it is with WebTV PageBuilder javascript! The problem is due to the fact that the PageBuilder program ignores the text between the comment tags inside the script tags in an "Add text" box and wll not embed the scripts in the Basic Editor screen and your webpage when published.
However, you see many online C&P scripts and textbooks using the comment tags and extra returns, called whitespace; which allows scripts to be read easier. The "returns" causes the PageBuilder software program to add <br> tags in your scripts. Just remove the comment tags and all extra spaces and returns when you use the scripts in a WebTV PageBuilder webpage "Add text" box. And be aware of this upgrade problem: The WebTV 2.6.1 upgrade is far stricter on HTML and scripts and will no longer allow the use of added HTML tags to make scripts with comment tags and extra whitespace work in a PageBuilder text box! To be able to see their PB custom backgrounds and scripts work correctly, all PageBuilders will have to remove the added HTML tags, extra spaces and returns (whitespace) that add <br> tags in your scripts, and also remove the double body tags, for added custom backgrounds, they are currently using with the 2.5.5 and 2.6 upgrades, when they receive the 2.6.1 upgrade.
The HTML comment tags serve a very important purpose in scripting, by allowing javascript enabled browsers and non-javascript browsers to "co-exist" when reading the same webpages the comment tags hide script from old non-javascript browsers. Javascript enabled browsers know the text between the comment tags inside the script tags is javascript code; while non-javascript browsers ignore the script tags, and know to ignore the script text between the HTML comment tags, so javascript code isn't displayed as plain text on non-javascript browsers. Our WebTV browsers support this protocol; but, not in PageBuilder webpage editor "Add text" boxes!
ABOUT STAR BOULEVARD TRANSLOADER (TL/2)
As you will see when you view the source code for this document, I had to link to my TL/2 (Star Boulevard Transloader) website for the sound files for the sonification links in this document. Star Boulevard websites have always allowed linking to WebTV email signature boxes and PageBuilder webpages! I have 30meg of website space with a neat, password protected (if desired) file manager, and 15meg of email space that comes with my TL/2 subscription. I put up a minimum of $15.00 deposit, and pay (deduct against cash balance) only $0.01 (1’) per 100kb of transloaded data, including emails from outside servers. Seems like my cash balance will last forever, just transloading a few .mid and .wav files! But, I really used the Star Boulevard free transloader a lot for other website space, as many Webbers did, before we got WebTV PageBuilder and WebScissors.
I have long supported Star Boulevard for the free transloader and support they gave to Webbers building webpages at Anglefire, Geocities, Tripod, and others before we got WebTV PageBuilder website space. When Star Boulevard had to suspend the free transloader earlier this year, I signed up for a pay subscription. I use it regularly for single file transloading because I have all my server folders "ftp" addys in a drop-down menu for quick access, so I don't have to type them in the transloader. TL/2 has other options that I haven't used much because I have other resources elsewhere. TL/2 supports PHP (v4.0) for advanced webpage scripting, SSI, Source Code Viewer, multi-file/folder website transloader, an Extract-PDF tool that converts PDF files, the W3C HTML Code Tidy Tool, Image Tool, WebTV Plus boxes video capture tool, free NG message boards, and a Zip/UnZip tool!
I recently opened a WTV-Zone account, because most all my friends have accounts there, and I appreciate the Zone's support for Webbers! As soon as I get my Zone account set-up with all the "bells and whistles," I'll transfer most of my PageBuilder tutorials, and will be able to produce a higher quality of tutorials for a few special WebTV projects.
I'm abandoning my Geocities GeoPlus premium account because they don't allow linking to WebTV. I personally think all Webbers should leave all the webpage providers, such as Angelfire, Tripod, and others that stopped linking even small midi files to WebTV, and open accounts at webpage space providers like the Zone and TL/2 that fully support WebTV! I know it's a real monumental task to move your websites for some of you guys with "mega" webpages; but, there's online tools that make moving lots of files easy! Webbers need to support only those who support WebTV!
SUMMARY
OK, folks, go with your own sonified webpages! This tutorial explains the basics; but, I couldn't possible cover all the problems you may encounter wth your own advanced webpages! The basic table template structure of the PageBuilder webpage editing program makes it very difficult to use any advanced editing method, because you must use several work-around procedures to overcome PageBuilder's built-in program procedures. And, there's many unknown problems you encounter when you try to do something new or different. So; you have to always have a determined, positive "can-do" attitude, be patient, try out your ideas by "trial-and-error", and try to understand each problem's cause-and-effect! That's the only way to learn all the nuances of PageBuilder learn what you can and can't do.
Well that's about it, folks! Good luck! Have fun with your webpage sonification! The possibilities are endless limited only by your creativity, your expertise, and the amount of time you are willing to spend trying to learn! Please visit my friend Jerry's Beatnik website noted above, and check out the Beatnik webpage sonification tutorial for a more advanced use of webpage sonification!
Thanks for visiting my website, folks! Have a nice day, my Webber friends! My best wishes to you, your families, friends, and neighbors!
|