laucinieks Posted August 26, 2011 Report Share Posted August 26, 2011 Sveiki, vēlējos uzzināt, vai kāds nevarētu palīdzēt uztaisīt sāna navigāciju css + html + js, kā šeit . Runāju par to sāna navigāciju, kur ir New arrivals, Collections u.t.t. Būšu ļoti pateicīgs. Quote Link to comment Share on other sites More sharing options...
daGrevis Posted August 26, 2011 Report Share Posted August 26, 2011 Nu mēģini pats! Mēs asistējam. Quote Link to comment Share on other sites More sharing options...
Vecteevs Posted August 26, 2011 Report Share Posted August 26, 2011 http://www.domedia.org/oveklykken/css-rollover-image.php labs piemērs Quote Link to comment Share on other sites More sharing options...
laucinieks Posted August 26, 2011 Author Report Share Posted August 26, 2011 Kā var noņemt ul un li tās atkāpes nost? Piemēram, man ir - <p>Sss</p> <ul> <li>Teksts</li> </ul> viņš izvada, kā sarakstu - Sss teksts Kā, to tabošanu noņemt, nost (saraksta stilu(nevis list-style-type: ...; bet tabošanu)). Quote Link to comment Share on other sites More sharing options...
vertex Posted August 26, 2011 Report Share Posted August 26, 2011 padding,margin.... Quote Link to comment Share on other sites More sharing options...
Snapins Posted August 27, 2011 Report Share Posted August 27, 2011 Tur kur Tev ir ul pieraksti CSS failā - margin:0; padding:0; Quote Link to comment Share on other sites More sharing options...
laucinieks Posted August 27, 2011 Author Report Share Posted August 27, 2011 Dizainu uztaisīju, tagad ar js kodu, kā var uztaisīt, lai viņš tā smuki atveras/aizveras uzspiežot. Quote Link to comment Share on other sites More sharing options...
daGrevis Posted August 27, 2011 Report Share Posted August 27, 2011 show(), hide(), toggle(), click() iz jQuery. Quote Link to comment Share on other sites More sharing options...
laucinieks Posted August 27, 2011 Author Report Share Posted August 27, 2011 Kas jāraksta, javascript kodā pie uzspiešanas detaļām, lai uzspiežot uz šī linka - <a href="javascript:void(0);">ss</a> parādītos un pazustu <p> tags, piemēram? Quote Link to comment Share on other sites More sharing options...
briedis Posted August 27, 2011 Report Share Posted August 27, 2011 (edited) $("a").click(function(){ $("p").toggle(); }); Edited August 27, 2011 by briedis Quote Link to comment Share on other sites More sharing options...
laucinieks Posted August 27, 2011 Author Report Share Posted August 27, 2011 var $j = jQuery.noConflict(); $j(document).ready(function() { $j('#snav ul li.selected ul').show().addClass('visible'); //accordion $j('#snav h3').click(function(){ if ( $j(this).siblings('ul').is(':visible') ) { $j(this).siblings('ul').slideUp(400).removeClass('visible'); } else { // added to close open :visible elements $j('#snav h3').siblings('ul').slideUp(400).removeClass('visible'); $j('#snav .visible').slideUp(400).removeClass('visible'); $j(this).siblings('ul').slideDown(400).addClass('visible'); } }); Viņiem bija šāds js skripts, bet pievienojot gan jquery bibliotēku, gan šo visu skriptu - (barco.js), tāpat visi li ir visible no sākuma, un spiežot nekas nenotiek. Quote Link to comment Share on other sites More sharing options...
rebuilder Posted August 28, 2011 Report Share Posted August 28, 2011 Tu tak te, pirms laika sūdzējies, ka visu jau pārzini un meklēji jaunu valodu ko mācīties, bet kā skatos par debugot kodu nemāki :) 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.