Since you ask it 
I've gotten U-fade to accept a "myWidth" and "myHight" from a java script in the html opened in the lyteframe. That way I use the Lytframe sizes as maximum for U-fade. (At least: I think it works: It centers when opened in a new tab)
However I can't get same scrip to use those values as size for the Lyteframe. Those sizes I set here:
HTML Code:
<a href="smoothgallery/edit1acopy.html" rel="lyteframe[fadeshow2]"rev="width: 700; height: 900; scrolling:no">test<img src="images/editing/thumb/image01.jpg" height="120" alt="NL" class="float-left" /></a></a>
If I remove "px" originally there, it still works, but if I put a variable (myHight) there, it won't work. I also couldn't get it to work in the lytebox.js. I think that's my biggest problem right now.
Likewise, I haven't been able to get those "myWidth" and "myHeight" values to be accepted in the resizer.php used by Smoothgallery. But I might be able to use a similar code in php then what's used in js: (from somewhere on the web
)
HTML Code:
<script type="text/javascript">
var myWidth=window.innerWidth
{
if( typeof( window.innerWidth ) == 'number' ) {
//Non-IE
myHeight = window.innerHeight;
} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
//IE 6+ in 'standards compliant mode'
myHeight = document.documentElement.clientHeight;
} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
//IE 4 compatible
myHeight = document.body.clientHeight;
}
}
</script>
Result of a whole lot of fumbling around more or less in the dark: here.
- First "test" image: plain jpg opening in a Lytebox, resized to the screen (to test I didn't screw up Lytebox
) - Second "test" image: U-fade, opening in a fixed-size Lyteframe, using the Lyteframe size as width and height. (with a little offset I think)
HTML Code:
dimensions: [myWidth, myHeight], //width/height of gallery in pixels.
- Third test image: Smoothgallery, opening in a fixed size Lyteframe, resizing using resizer.php with manually set values.
- Fourth image: Smoothgallery, opening in a "Default sized" lyteframe (400px square). No resizing.
Bookmarks