Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Hi all
I have a page with a bunch of images on it and need to resize all of them to fit nicely on the page in columns and rows. So i use javascript and when each images loads I call a function to resize them based on the screen width and height BUT it doesnt work in firefox!!!!
this is a basic run down version of the function
[syntax="javascript"]
function resize_img(evt) {
if(!evt)
evt = window.event;
var src = evt.target || evt.srcElement;
src.style.width = 100 + "px";
}thanks in advance
Pimptastic | Please use[/syntax]
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]