Posts

jquery - Tympanus Elastislide Carousel autoplay -

i using tympanus elastislide carousel responsive jquery plugin website. plugin works on site. but, want casousel play automacily. but, don't find code move carousel automatically. the slider plugin link: http://tympanus.net/codrops/2011/09/12/elastislide-responsive-carousel/ the java script using <script type="text/javascript"> $( '#carousel' ).elastislide( { // orientation 'horizontal' || 'vertical' orientation : 'horizontal', // sliding speed speed : 500, // sliding easing easing : 'ease-in-out', // minimum number of items show. // when resize window, make sure minitems shown // (unless of course minitems higher total number of elements) minitems : 3, // index of current item (left item of carousel) start : 0, // click item callback onclick : function( el, position, evt ) { return false; }, onready : function() { return true; }, onbeforesl...

css - Change multiple background-images with jQuery -

in css page, have code: header { background:url('afbeeldingen/r.png'),url('afbeeldingen/black.jpg'); background-position: 50% 33%, left top; background-repeat: no-repeat, no-repeat; background-size:26%,960px 130px; margin-left:auto; margin-right:auto; } now in html page, want use jquery change first image when hover navigation bar. can please me? use class header navigation button wherever want work .header { background:url('afbeeldingen/r.png'),url('afbeeldingen/black.jpg'); background-position: 50% 33%, left top; background-repeat: no-repeat, no-repeat; background-size:26%,960px 130px; margin-left:auto; margin-right:auto; } <script> $(".header").hover(function(){ $(this).css("background","url('afbeeldingen/black.jpg'),url('afbeeldingen/anotherhoverimage.jpg')"); }); $(".header").mouseout(function(){ $(this).css(...

python - how can I change feature of thread after it is started? -

i have 1 thread have change parameters before have start it. but, while running, have changed 1 variable of not reflect changes. so, how can change feature of thread after started ? have did like cons = con() # con thread class cons.inter = inter cons.start() after start if change cons.inter, change not reflected. how solve ? if "features" mean user-defined attributes of thread object (as opposed thread -class-level-defined attributes, such daemon attribute), can it, , will reflected.

Jetty Websockets can't connect to server -

so have correctly setup jetty (eclipse based) server listening on 8080. (i put little hello world html test). if go to http://localhost:8080/index.html my html displayed. now have followed tutorial, work websockets. https://gist.github.com/manzke/1021982 the web.xml configured follow: <?xml version="1.0" encoding="utf-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemalocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5"> <display-name>tailor</display-name> <servlet> <servlet-name>websocket</servlet-name> <servlet-class>org.sample.websocket.chatwebsocketservlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>websocket...

how to see preview of xml in Android Studio -

Image
i installed android studio , when open xml file cant preview or see pallete if go view-tool windows - palette wont show again. want see preview of xml file in eclipse the issue looking @ xml file located in project location: build/res/all/debug you need view in location: src/main/res/layout

Android button images radius -

hi have button in app , set button style shape when use images android:src="@drawable/button_background" /> i have problem radius http://i39.tinypic.com/33vm3gh.png my shep file <item android:state_pressed="false"> <layer-list> <item> <bitmap android:src="@drawable/button_background" /> </item> <item> <shape> <gradien android:angle="90" /> <solid android:color="#eeeeee" /> <corners android:toprightradius="0dip" android:topleftradius="0dip" android:bottomleftradius="5dip" a...

android - Unable to receive response from the servlet -

i need retrieve control jsp response request fired earlier. problem facing not able response in jsp. i have gone through few post , tried few suggestion none seems work me. please, point out mistake. below try: protected void doget(httpservletrequest request, httpservletresponse response) throws servletexception, ioexception { log.info("in form doget"); request.setcharacterencoding("utf-8"); string selectedclass = request.getparameter("key"); log.info(selectedclass); string[] section = null; dbhandler dbhandler = new dbhandler(); dbhandler.makeconnection(); if (true == dbhandler.verifyconnection()) { section = dbhandler.getsection(selectedclass); } (string str : section) { log.info(str); } logger log; if (null != section) { request.setattribute(appconstants.section, section); } ...