PHPFusion - tai laisvai platinama nemokama turinio valdymo sistema (TVS), kurios pagalba galite greitai, lengvai ir
patogiai susikurti norimą internetinį puslapį. Plačiau apie sistemą...
Html webe yra paveiksliukas 100x100, bet kaip padaryti, kad paspaudus ant jo arba uzvedus ant jo pele jis pasididntu arba butu rodomas ktas paveiksliukas?
normal_image = new Image();
normal_image.src = "path/img.gif";
mouseover_image = new Image();
mouseover_image.src = "path/img2.gif";
<!-- repeat the 4 lines above for any subsequent images. -->
function swap(){
if (document.images){
for (var x=0;
x<swap.arguments.length;
x+=2) {
document[swap.arguments[x]].src = eval(swap.arguments[x+1] + ".src");
}
}
}
</script>
<!-- Place this code where you want the rollover buttons to appear.
Parts to change here: name_of_img (to match <img name="", below),
Image variable (e.g mouseover_image/normal_image - to match above code),
href element to your documents url and the img name & src. -->