just wondering, what's the reason for the * 1?

Duncan Cumming
IT Manager

http://www.alienationdesign.co.uk
mailto:[EMAIL PROTECTED]
Tel: 0141 575 9700
Fax: 0141 575 9600

Creative solutions in a technical world

----------------------------------------------------------------------
Get your domain names online from:
http://www.alienationdomains.co.uk
Reseller options available!
----------------------------------------------------------------------
----------------------------------------------------------------------


                                                                                       
                            
                    Rich Wild                                                          
                            
                    <[EMAIL PROTECTED]        To:     "'[EMAIL PROTECTED]'" <[EMAIL 
PROTECTED]>     
                    go.com>              cc:                                           
                            
                                         Subject:     RE: [ cf-dev ] Page Weight       
                            
                    12/06/2003                                                         
                            
                    08:36                                                              
                            
                    Please                                                             
                            
                    respond to                                                         
                            
                    dev                                                                
                            
                                                                                       
                            
                                                                                       
                            



here's a handy script! call it from an onLoad event in the body tag.

function calculate()
{
           if (!document.fileSize)
           {
                     alert('This script does not work in your browser.');
                     return;
           }
           var size = (document.fileSize)*1;
           var y = document.images;
           var imglength = 0;
           for (i=0;i<y.length;i++)
           {
                     imglength += (y[i].fileSize)*1;
           }
           var total = size + imglength;
           var writestring = 'File size HTML: ' + size;
           writestring += '\nFile size images: ' + imglength;
           writestring += '\nTotal file size: ' + total;
           alert(writestring);
}

> -----Original Message-----
> From: Allan Cliff [mailto:[EMAIL PROTECTED]
> Sent: 12 June 2003 08:00
> To: CF - List
> Subject: [ cf-dev ] Page Weight
>
>
> Anyone know a website or tool that measures the weight of a
> web page with all the images etc.
>
> Thanks
>
> Allan
>


--
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]






-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

Reply via email to