Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/Code)
 Another mod of auto-resizing images version (1.2)
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

MarcelG
Retired Support Moderator

Netherlands
2625 Posts

Posted - 08 June 2005 :  10:10:57  Show Profile  Visit MarcelG's Homepage
I've been using the auto-resizing images version (1.2) mod for some time now, but I recently decided to do it differently.

Now the mod has 2 options ;
  1. resize the image to a 'static' maximum width defined as FixedWidth in resizeimgs.js.
  2. Resize the image to a portion of the screen width (also defined in resizeimgs.js)

I've ditched option 2, and created a new option ; resizing the image to the available window size minus a fixed margin.
So, not the client resolution is key, but the actual size of the browserwindow.
What did I do : I altered resizeimgs.js.
I added this to the functions resizeImage(thisimage) and enlargeimg(thisimage).
if( typeof( window.innerWidth ) == 'number' ) { 
    //Non-IE 
    myWidth = window.innerWidth; 
  } else if( document.documentElement && 
      ( document.documentElement.clientWidth ) ) { 
    //IE 6+ in 'standards compliant mode' 
    myWidth = document.documentElement.clientWidth; 
  } else if( document.body && ( document.body.clientWidth ) ) { 
    //IE 4 compatible 
    myWidth = document.body.clientWidth; 
  }

Now we've retrieved the actual window size of the browser in the variable myWidth.
We take the already existing value for FixedWidth but instead of using it as the maximum width, we use it as the required margin.
Parsing the actual code here doesn't work, but you can download the current file from oxle here (login demo/demo)

Perhaps someone finds this mod of a mod usefull.
Oh, perhaps someone wants a demo:

portfolio - linkshrinker - oxle - twitter

Edited by - MarcelG on 08 June 2005 10:11:17

Etymon
Advanced Member

United States
2383 Posts

Posted - 09 June 2005 :  00:40:42  Show Profile  Visit Etymon's Homepage
Thanks, Marcelgoertz!
Go to Top of Page

Massimo
Junior Member

Italy
125 Posts

Posted - 10 June 2005 :  11:33:00  Show Profile  Visit Massimo's Homepage
personal version 1.2++

http://www.superdeejay.net/guida_forumxp/ridimensiona_immagini_titanium_platinum_all.asp

preview:

http://www.superdeejay.net/forumplatinumfull/topic.asp?TOPIC_ID=16


Massimo Farieri
Snitz Italian Community
===============
http://www.snitz.it
http://www.superdeejay.net/forum/


Edited by - Massimo on 10 June 2005 11:42:39
Go to Top of Page

MarcelG
Retired Support Moderator

Netherlands
2625 Posts

Posted - 10 June 2005 :  13:08:48  Show Profile  Visit MarcelG's Homepage
Massimo ; would you care to elaborate on what's new in 1.2++ ? I think you've changed the pop-method, but I'm not sure. My italian is kind of ... erm... 'bad'. (In other words ; I cannot understand any of it )

Tnx

portfolio - linkshrinker - oxle - twitter
Go to Top of Page

modifichicci
Average Member

Italy
787 Posts

Posted - 11 June 2005 :  17:40:37  Show Profile  Visit modifichicci's Homepage
That's a mix from version 1.0 and 1.2 because 1.2 doesn't work on some modded forums (Image Portal, Superdeejay modded and others).
So we have taken the code of the 1.2 to let the user to define the variables but using the routine of the 1.0 that works properly and delete the on walk image routine.
I am not able to understand why 1.2 doesn't work (on my forum and in many others). We cannot use resiseimg.js and so we have add the code to inc_code (inc_javascript in Image forum). It's possible it's a defect of our server ( a lot of snitz are hosted on Italian server Aruba).

Ernia e Laparocele
Forum di Ernia e Laparocele
Acces - MySql Migration Tutorial
Adamantine forum
Go to Top of Page

MarcelG
Retired Support Moderator

Netherlands
2625 Posts

Posted - 12 June 2005 :  13:57:11  Show Profile  Visit MarcelG's Homepage
Ah, ok. Now I see. So no actual functional change to the mod.

portfolio - linkshrinker - oxle - twitter
Go to Top of Page

Bassman
Junior Member

Netherlands
256 Posts

Posted - 17 June 2005 :  10:34:59  Show Profile  Visit Bassman's Homepage
Massimo, do you have a direct download to version 1.2?
Go to Top of Page

modifichicci
Average Member

Italy
787 Posts

Posted - 18 June 2005 :  07:03:42  Show Profile  Visit modifichicci's Homepage
http://www.superdeejay.net/download/goasp.asp select Mods 3.4.05 for the snitz base version (in italian)

or http://www.herniasurgery.it/forum in the download section (for registered users)

Ernia e Laparocele
Forum di Ernia e Laparocele
Acces - MySql Migration Tutorial
Adamantine forum
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.12 seconds. Powered By: Snitz Forums 2000 Version 3.4.07