I recommend that article in light of a more "inline" approach:
http://www.alistapart.com/articles/scripttriggers/
On Wednesday, January 26, 2005, at 01:43 PM, Raymond Irving wrote:
Hi Kevin,
Any ASP.NET? tutorials to help us unix peeps.
:) This one is very straight forward. No help files needed - lol
You just simple include the webelm.js file and you're ready to go:
A quick and easy news ticker example:
<script>
document.setIncludePath("../core/");
var tk;
function document_oninit(){ document.include("Ticker"); }
function document_onload(){ tk = new Ticker("mytick"); tk.addMessage("Simple and easy JavaScript"); tk.addMessage("Lightweight API"); tk.addMessage("DHTML made simple"); tk.addEventListener("onclick"); }
function ticker_onclick(e){ alert("You've selected message # "+ e.instance); } </script>
inside your html:
<p><script>Ticker.Render("mytick",400,50)</script></p>
That's it! all event driven
__ Raymond Irving
------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Dynapi-Dev mailing list [email protected] http://www.mail-archive.com/[email protected]/
Benoit
------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Dynapi-Dev mailing list [email protected] http://www.mail-archive.com/[email protected]/
