jerek
Jan-24-2006, 10:49 PM
Cheers folks.
I like the feature that user can adjust the picture size. But i think the users are too lazy, or just many times not interested in this kind of interactivity, so i would like to adjust the default viewing size to large. Is this possible? Now the default viewing size seems to be always small, which is mostly way too small.
Could it be done with javascript? So that script would check the pulldowns value, and if it is not large, it would change the value..do some redirection stuff, set cookies or something. Havent tried that yet, thought about asking it here first. Last time i got great answers here about css very fast :): . Anyways, havent seen such page here on smugmug yet, and im not sure if it is even possible to do..
I guess the photosizechange.mg - page is server side code (?), so i have no idea what cookies or such it sets. Seems the size changing auto-submits settings to this page and it does the magic. Just is this possible to force to large?
Here's few lines from the form. It takes the size and the origin as values :
<form action="/homepage/photosizechange.mg" method="post" name="photosize_chooser" id="photosize_chooser">
<select name="Size" onChange="document.photosize_chooser.submit();">
Maybe if javascript would check the pulldown value, and if not large, it would set the pulldown to large and call the document.photosize_chooser.submit() - function? Im just thinking loud.
-Jere
I like the feature that user can adjust the picture size. But i think the users are too lazy, or just many times not interested in this kind of interactivity, so i would like to adjust the default viewing size to large. Is this possible? Now the default viewing size seems to be always small, which is mostly way too small.
Could it be done with javascript? So that script would check the pulldowns value, and if it is not large, it would change the value..do some redirection stuff, set cookies or something. Havent tried that yet, thought about asking it here first. Last time i got great answers here about css very fast :): . Anyways, havent seen such page here on smugmug yet, and im not sure if it is even possible to do..
I guess the photosizechange.mg - page is server side code (?), so i have no idea what cookies or such it sets. Seems the size changing auto-submits settings to this page and it does the magic. Just is this possible to force to large?
Here's few lines from the form. It takes the size and the origin as values :
<form action="/homepage/photosizechange.mg" method="post" name="photosize_chooser" id="photosize_chooser">
<select name="Size" onChange="document.photosize_chooser.submit();">
Maybe if javascript would check the pulldown value, and if not large, it would set the pulldown to large and call the document.photosize_chooser.submit() - function? Im just thinking loud.
-Jere