[thelist] javascript help
Peter Brunone (EasyListBox.com)
peter at easylistbox.com
Mon Dec 20 10:52:45 CST 2004
When I run the page in Firefox (actually Firebird), I get "nav
is not defined" on line 46 of /test/_inc_menunav.js .
-----Original Message-----
From: thelist-bounces at lists.evolt.org On Behalf Of Rita Crisafi
http://www.andreasbrickoven.com/test/menu.html
I had all kinds of crazy specs from this client and i know that the
images
are large (didn't design it). The client wanted menu stuff to scroll on
the
page, so I found a simple javascript that scrolls content in an iframe
for
this page.
><script type="text/javascript">
>/**********************************************************************
***
> This code is from Dynamic Web Coding at http://www.dyn-web.com/
> See Terms of Use at http://www.dyn-web.com/bus/terms.html
> regarding conditions under which you may use this code.
> This notice must be retained in the code as is!
>***********************************************************************
>**/
>
>var timer_id;
>function scroll_iframe(frm,inc,dir) {
> if (timer_id) clearTimeout(timer_id);
> if (window.frames[frm]) {
> if (dir == "v") window.frames[frm].scrollBy(0, inc);
> else window.frames[frm].scrollBy(inc, 0);
> timer_id = setTimeout("scroll_iframe('" + frm + "'," + inc + ",'"
>+
> dir + "')", 20);
> }
>}
>
>function stopScroll() { if (timer_id) clearTimeout(timer_id); }
></script>
What i didn't realize at the time, is that it only works in IE and not
firefox or netscape. Does anyone know of why and if there is any kind of
modification i can make so that it will work in other browsers?
--
* * Please support the community that supports you. * *
http://evolt.org/help_support_evolt/
For unsubscribe and other options, including the Tip Harvester
and archives of thelist go to: http://lists.evolt.org
Workers of the Web, evolt !
More information about the thelist
mailing list