Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,472
There are 1550 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     Programming     PHP and MySQL :

help with jscript code

Thread title: help with jscript code
Closed Thread    
    Thread tools Search this thread Display Modes  
08-25-2005, 03:04 PM
#1
zendiggo is offline zendiggo
Status: I'm new around here
Join date: Aug 2005
Location:
Expertise:
Software:
 
Posts: 5
iTrader: 0 / 0%
 

zendiggo is on a distinguished road

  Old  help with jscript code

can anyone please tell me what this bit of code does? thanks!

<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->

08-25-2005, 05:07 PM
#2
Amnezia is offline Amnezia
Status: I'm new around here
Join date: Aug 2005
Location: UK
Expertise:
Software:
 
Posts: 23
iTrader: 0 / 0%
 

Amnezia is on a distinguished road

  Old

It reloads the current page if the browser (Netscape Navigator 4) window is resized.

08-25-2005, 07:45 PM
#3
zendiggo is offline zendiggo
Status: I'm new around here
Join date: Aug 2005
Location:
Expertise:
Software:
 
Posts: 5
iTrader: 0 / 0%
 

zendiggo is on a distinguished road

  Old

so it's really not necessary??

08-26-2005, 12:35 AM
#4
jono1 is offline jono1
jono1's Avatar
Status: Non-conformist
Join date: Jul 2005
Location: Canberra, Australia.
Expertise:
Software:
 
Posts: 1,172
iTrader: 0 / 0%
 

jono1 is on a distinguished road

  Old

yeah its just another piece of random useless code dreamweaver produces.

question: what is the point of reloading the page if the window is resized?

08-26-2005, 07:40 AM
#5
Amnezia is offline Amnezia
Status: I'm new around here
Join date: Aug 2005
Location: UK
Expertise:
Software:
 
Posts: 23
iTrader: 0 / 0%
 

Amnezia is on a distinguished road

  Old

Its a work around for a bug in the way Nav 4 handles layers. When you resize the browser window in Nav 4 it tends mess up the position of layers. Reloading the page helps to maintain the correct positioning.

So its not useless, although according to the stats from a few of my sites only 2% of visitors still use the Nav 4 browser.

08-26-2005, 10:49 PM
#6
jono1 is offline jono1
jono1's Avatar
Status: Non-conformist
Join date: Jul 2005
Location: Canberra, Australia.
Expertise:
Software:
 
Posts: 1,172
iTrader: 0 / 0%
 

jono1 is on a distinguished road

  Old

yeah i was about to say, i guess it's a good thing they're up to netscape 8 then...

Closed Thread    


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed