hoho Posted September 25, 2013 Report Share Posted September 25, 2013 Kā ar imagemap var uztaisīt lai kad kursors ir virsu kādai zonai lielā bildē, lai parādītos title vai alt text nevis standarta veidā, bet ka <div> ar savu css stilu? Piem.: <img src="someimage.jpg" usemap="#somemapname" /> <map name="somemapname"> <area shape="rect" coords="100,10,200,90" href="somelink" title="myTitle" alt="myTitle" /> </map> Lai teksta "myTitle" vietā paradītos kaut kāds div ar ikonu, fonu utt. Quote Link to comment Share on other sites More sharing options...
gurkjis Posted September 25, 2013 Report Share Posted September 25, 2013 (edited) Vari lietot custom tooltip (title) jquery pluginu, piem http://jqueryui.com/tooltip/ - varbūt darbojas arī uz <area> elementiem. Ja gribi pavisam custom div un css, tad izmanto mouseover un mouseout eventus <area> tagam. googlē pēc: area mouseover Edited September 25, 2013 by gurkjis Quote Link to comment Share on other sites More sharing options...
daGrevis Posted September 25, 2013 Report Share Posted September 25, 2013 Image maps nav like deprecated a long time ago? Quote Link to comment Share on other sites More sharing options...
xPtv45z Posted September 26, 2013 Report Share Posted September 26, 2013 daGrevis, ko tu iesaki lietot viņu vietā? Quote Link to comment Share on other sites More sharing options...
Kavacky Posted September 26, 2013 Report Share Posted September 26, 2013 JS? :) Quote Link to comment Share on other sites More sharing options...
daGrevis Posted September 26, 2013 Report Share Posted September 26, 2013 Jā, kāpēc gan neizmantot JS. Quote Link to comment Share on other sites More sharing options...
xPtv45z Posted September 26, 2013 Report Share Posted September 26, 2013 Jo aprēķināt vai es šāda veida linkā ieklikšķinu vai ieklikšķinu tam blakus būs pārāk laikietilpīgi. http://static3.depositphotos.com/1001224/220/v/950/depositphotos_2209685-Reclame-star-shape.jpg Jautrāk, ja visi linki nav vienas formas, bet ir arī ar neregulārām līkveida robežām. :) Kur nu vēl, ja tās ir kaut kādas kartes. :) Vai arī jūs to kaut kā savādāk domājāt izdarīt? Quote Link to comment Share on other sites More sharing options...
briedis Posted September 26, 2013 Report Share Posted September 26, 2013 Kas jums pret map? Riktīgi laba štelle, ja nav taisnstūris. Nez kā ar JS varētu būt vienkāršāk... Ir tācu arī online pieejami rīki, kas vnk uzģenerē visas kooridnātes, pat kaut kādā GIMP esot rīks, kas eksportē map'u. Domāju, ka vienkāršākas/labākas alternatīvas nav. Quote Link to comment Share on other sites More sharing options...
Kasspars Posted September 26, 2013 Report Share Posted September 26, 2013 Image map is too mainstream. Tā pat kā div tags :D Hipsteri ibio Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.