|
2008/06/11 16:17
JavaScript¤äFlash¤ò»È¤ï¤º¤Ë¥¹¥¿¥¤¥ë¥·¡¼¥È¤À¤±¤Ç
¥µ¥à¥Í¡¼¥ë²èÁü¤Ë¥Þ¥¦¥¹¥ª¡¼¥Ð¡¼¤Ç³ÈÂç²èÁü¤òɽ¼¨¡£¥µ¥à¥Í¡¼¥ë¥¯¥ê¥Ã¥¯¤Ç³ÈÂç²èÁü¤ò¸ÇÄê¡£ ¸ÇÄꤷ¤¿²èÁü¤Ë¥ê¥ó¥¯¤òÆþ¤ì¤é¤ì¤Þ¤¹¡£ JavaScript¤äFlash¤ò¶Ø»ß¤µ¤ì¤Æ¤¤¤ë¥µ¡¼¥Ð¡¼¤ÎÊý¤â»È¤¨¤Þ¤¹¤Í¡£ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja"> <head> <meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS"> <title>title</title> <style type="text/css"> <!-- ul#gallery { padding:5px 0px 0px 10px; /*¾å¡¢±¦¡¢²¼¡¢º¸*/ margin:0px; width:204px; height:170px; border:1px solid pink;¡¡ position:relative; background:url(ÇØ·Ê²èÁü¤ÎURL) no-repeat fixed top left;/**/ -height:155px; -width:212px; } #gallery li { list-style-type:none; width:50px; height:37px; float:left; z-index:100; -width:45px; -height:34px; } #gallery li.lft { float:left; clear:left; } #gallery li.rgt { float:right; clear:right; } #gallery a { position:relative; width:50px; height:37px; display:block; float:left; z-index:100; cursor:default; margin: 5px 2px 2px 0px; /*¾å¡¢±¦¡¢²¼¡¢º¸*/ background: url(²èÁü¤Î±Æ¤ÎURL) bottom right; float: left; width: auto; -width:45px; -height:34px; } #gallery a img { position:relative; width:50px; height:37px; border:1px solid #888; z-index:100; background: #ffffff; border: 0px solid #999; padding:1px;/*¸µ5*/ position: relative; left: -7px; top: -7px; -padding:1px;/*¸µ5*/ -border: 1px solid #999; -width:45px; -height:34px; } #gallery a:hover { width:203px; height:151px; padding:0px 0px 2px 9px; /*¾å¡¢±¦¡¢²¼¡¢º¸*/ position:absolute; left:12px; top:20px; z-index:200; /*¥Þ¥¦¥¹¤òÅö¤Æ¤¿»þ²èÁü¤¬Á°Ì̤˸½¤ì¤ë¡¦¸µ¤Ï20*/ -padding:0px 0px 2px 9px; /*¾å¡¢±¦¡¢²¼¡¢º¸*/ -left:2px; -top:10px; } #gallery a:hover img { background:#eee; position:relative; width:203px; height:151px; border:0; z-index:200; /*¥Þ¥¦¥¹¤òÅö¤Æ¤¿»þ²èÁü¤¬Á°Ì̤˸½¤ì¤ë¡¦¸µ¤Ï10*/ } #gallery a:active, #gallery a:focus { background:transparent; width:203px; height:151px; padding:7px 0px 0px 0px; /*¾å¡¢±¦¡¢²¼¡¢º¸*/ position:absolute; left:0; top:0; z-index:400; /*¥¯¥ê¥Ã¥¯¤·¤¿»þ²èÁü¤¬Á°Ì̤˸½¤ì¤ë¡¦¸µ¤Ï10*/ } #gallery a:active img, #gallery a:focus img { background:#eee; position:relative; width:203px; height:151px; border:0; z-index:400;/*¥Þ¥¦¥¹¤òÅö¤Æ¤¿»þ²èÁü¤¬Á°Ì̤˸½¤ì¤ë¡¦¸µ¤Ï10*/ } /* hack for Internet Explorer */ #gallery li.pad { height:0; display:block; margin-top:-2px; width:203px; font-size:0; padding-top:93px; /*¥µ¥à¥Í¥¤¥ë²èÁü²¼¤ÎÎ󡦾å¤ÎÎó¤Î²¼Ã¼¤«¤é¤Îpadding*/ -padding-top:83px; /*¥µ¥à¥Í¥¤¥ë²èÁü²¼¤ÎÎ󡦾å¤ÎÎó¤Î²¼Ã¼¤«¤é¤Îpadding*/ } /* hack for Opera 7+ */ @media all and (min-width:0px){ #gallery a:hover { background:#888; width:203px; height:151px; padding:7px 0px 0px 0px; /*¾å¡¢±¦¡¢²¼¡¢º¸*/ position:absolute; left:0; top:0; z-index:100;/*¸µ10*/ } #gallery a:hover img { background:#aaa; position:relative; width:160px; height:120px; border:0; z-index:100;/*¸µ10*/ }--> </style> </head> <body> <ul id="gallery"> <li><a href="#"> <img src="#1²èÁü¤ÎURL" alt="#1" title="#1" /></a></li> <li><a href="#"> <img src="#2²èÁü¤ÎURL" alt="#2" title="#2" /></a></li> <li><a href="#"> <img src="#3²èÁü¤ÎURL" alt="#3" title="#3" /></a></li> <li><a href="#"> <img src="#4²èÁü¤ÎURL" alt="#4" title="#4" /></a></li> <li class="pad"></li> <li class="lft"><a href="#"> <img src="#5²èÁü¤ÎURL" alt="#5" title="#5" /></a></li> <li><a href="#"> <img src="#6²èÁü¤ÎURL" alt="#6" title="#6" /></a></li> <li><a href="#"> <img src="#7²èÁü¤ÎURL" alt="#7" title="#7" /></a></li> <li><a href="#"> <img src="#8²èÁü¤ÎURL" alt="#8" title="#8" /></a></li> </ul> </body> </html> »²¹Í¤Ë¤µ¤»¤Æ¤¤¤¿¤À¤¤¤¿¥µ¥¤¥È Stu Nicholls CSSplay CSS Photograph Gallery with hover and active states ¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£
|
¤É¤ê¡¼¤ß¡¼(10/12)
¹ÓÌîÂë¸×(10/11)
¤É¤ê¡¼¤ß¡¼(10/07)
½©À¸(10/06)
¤É¤ê¡¼¤ß¡¼(10/06)
½©À¸(10/06)
¤É¤ê¡¼¤ß¡¼(10/06)
½©À¸(10/06)
¤É¤ê¡¼¤ß¡¼(10/01)
¹ÓÌîÂë¸×(09/30)
¤É¤ê¡¼¤ß¡¼(09/25)
¥ª¡¼¥È¥¦¥§¡¼¥ÖÉÙΤŹ(09/24)
¤É¤ê¡¼¤ß¡¼(09/22)
¥ª¡¼¥È¥¦¥§¡¼¥ÖÉÙΤŹ(09/22)
¤É¤ê¡¼¤ß¡¼(09/22)
¤É¤ê¡¼¤ß¡¼(09/22)
¤Ï¤¸¤á¤Þ¤·¤Æ(09/22)
clair(09/19)
¤É¤ê¡¼¤ß¡¼(09/16)
clair(09/16)
¤É¤ê¡¼¤ß¡¼(09/14)
¤¸¤â¤é¡¼(09/14)
¤É¤ê¡¼¤ß¡¼(09/13)
¤¸¤â¤é¡¼(09/13)
¤É¤ê¡¼¤ß¡¼(09/12)