Like This Site? 
 
RSS Feed Follow Us 

on Twitter! Be Our Fan!

Rotating regular HTML content via DHTML

Share this post!
 Vote this!

One of the great pitfalls of using client side techniques such as JavaScript to display content on demand is the prerequisite that everything be contained in variables. This makes adding and updating the content very cumbersome. An example would be inputting the messages to display in a JavaScript scroller- generally not a fun experience:
<script type="text/javascript">

var message=new Array()
message[0]="<b><a href='http://javascriptkit.com'>Click here</a> for JavaScript Kit!</b>"
message[1]="The weather will be nice today"
"
"
</script>
In this tutorial we look at using DHTML to help break out from this limitation, so ordinary HTML content on your page can become participants to being dynamically shown as your script dictates, without the need to make any changes to the content themselves.   more...

0 comments:

Post a Comment