Как поставить onmouseover='' на определенные картинки???
spp
|
Цитата:
<!DOCTYPE html> <html> <head> <script src="http://code.jquery.com/jquery-latest.js"></script> <!-- <link rel="stylesheet" type="text/css" href="tmp.css" /> --> <style type="text/css"> </style> <script type="text/javascript"> $(document).ready(function () { $('img[src^="11111"]').mouseover(function () { alert('Ok'); }); }); </script> </head> <body> <img src="1111122222.jpg"> <img src="1111133333.jpg"> <img src="1111188879.jpg"> <img src="3333322222.jpg"> <img src="5555522222.jpg"> </body> </html> |
|
Цитата:
|
Цитата:
http://jquery-docs.ru/Selectors/attr...attributevalue |
Часовой пояс GMT +3, время: 12:33. |