Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

two scripts with onLoad event

Status
Not open for further replies.

yahve

Programmer
Nov 14, 2000
159
CA
Hi,

I would like to know if I can use two different scripts with the onLoad event. The first script positions divs on the page depending on the browser's window size. The second script I would like to start with the onLoad event is a news ticker that uses a textarea.

Thanks. Vieux motard que jamais...
 
Yes, of course you can.

<head>
<script>
function position_divs()
{
// div positioning code
}

function news_ticker()
{
// news ticker code
}

function initialize()
{
position_divs();
news_ticker();
}
</script>
</head>

<body onload=&quot;initialize()&quot;>
Sincerely,

Tom Anderson
CEO, Order amid Chaos, Inc.
 
thanks Tom, it looks so simple ... now!
Vieux motard que jamais...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top