Type: Posts; User: erkutacar
ok i figured it out myself :) thnx anyways
what if i wanted to make the number value of i + 1 because file names start from 0001.
since i is equal to 0 it starts giving ids from image0.
<img id="image0" class="resizing"...
ok it worked thnx a lot
hmm ok i get it now :) what if i dont want 'image' but only number? coud i use it like this?
<img id=". $i .'" class="resizing" src="'.$num.'" alt="">
ok ive got a function that places all the images from a folder into a table layout. what i need is an array function to give numerical ID to those images.. here is my code
well mozilla developer network said it should be like that :D
ok man gnite say hi to ur eyelids :D
thnx a lot for the effort man.. ive also tried document.getElementById('gallery').getElementsByName('resizing'); but didnt work. i havent made any other changes to the html and it doesnt have any...
ClassName nor Name worked.. but ById worked (only for the first img) and what u said about php stopped my script :D it was working fine the original way..
oh damn it worked then i changed image for img :) but only for the first pic.. as u mentioned every object should have a unique id.. so would giving a class name instead of id work?
here is my...
ok ive changed it the way u said but still not working.. oh and ive tried img.height instead of im.style.height but still didnt work..
var img =...
hmm ok but then how do i refer only to the images with the id #resizing?
nope... didnt work.. look here is the link of the site http://www.erkutacar.com/senol/beauty.php and u already know the scriptcode.. (image the borders visible to see whats going on :] )
well ive done it may way coz i want the script to affect only the elements with the id 'resizing'... thanks a lot ill try ur suggestion and report back :)
what im trying to accomplish is simple but i couldnt.. i have a set of images with the...