15,127 Topics

Member Avatar for
Member Avatar for cmabill

anyone could give me the code with function like below link, http://www.modcloth.com/shop/beauty/thebalm-natural-instincts-eyeshadow-palette I have mutiple photoes in one page, would like to display photo when the mouse is over it, the enlarged photo should in a fix position, and when the mouse leave the photo, the enlarged picture disappeared. thanks,

Member Avatar for kevin-johnson
0
190
Member Avatar for Vijaysurya

hai everybody, i need help in multiple true if condition IF (condition 1 is true) { $('.cCal').css('border-color','red'); return false; } and (condition 2 is true) { $('.cCal2').css('border-color','red'); return false; } (condition 3 is true) { $('.cCal3').css('border-color','red'); return false; } this syntax working only one condition is true. more than one …

Member Avatar for Troy III
-1
155
Member Avatar for mjsmitten

Hi I am really not good with javascript but I have a script that retrieves a list of state names with this code: map.objectList = new AmCharts.ObjectList("listdiv"); Apparantly it is withouth any format retrieved in a UL LI format. I need to "catch" this list (I know it has 51 …

Member Avatar for mjsmitten
0
192
Member Avatar for riahc3

Hello I want to make some shortcut keys (example Alt+K) to do a "onclick" on a button. How can I do this? Daniweb for example has that "Ctrl+B" makes the text bold. Thanks

Member Avatar for Troy III
-1
188
Member Avatar for cdoggg94

Basically we have a lot of people that want to view our site that use work computers and don't have the option to upgrade their browser. Most likely its an old version of IE. All I want to do is detect if they are using something older then say IE …

Member Avatar for cdoggg94
0
246
Member Avatar for turpentyne

I'm trying to reuse a function and it isn't working. I put it like so, and it works fine: $('.square-container').on('click', '.square', function(event) { $("#testit").removeClass("main_page"); if ( $(this).hasClass('active') ) { /* actions here */ } else if ( $(this).hasClass('one') ) { /* actions here */ } else { alert('error - nothing …

Member Avatar for EvolutionFallen
0
201
Member Avatar for silent lover

Here are my code: <tr> <td><input name="clubId" type="text" class="input1" style="width:200px;" > <a href="javascript:isExistClubId();"><img src="/club/images/main/C_btn_check.gif" border="0" align="absmiddle" alt=""></a> </td> </tr> function isExistClubId() { if(strLen(document.makeClub.clubId.value) > 20) { alert("Silahkan masukkan nama Klub hingga 40 karakter"); document.makeClub.clubId.focus(); } else if (!IsAlphaNumeric(document.makeClub.clubId.value)) { alert("Silahkan masukkan nama Klub dengan angka dan huruf."); document.makeClub.clubId.value = ""; …

Member Avatar for pixelsoul
0
265
Member Avatar for silent lover

i create 2 sliders within one page with code : <script type="text/javascript" src="js/jquery.easing.js"></script> <script type="text/javascript"> var $jq132 = $.noConflict(); </script> <script type="text/javascript" src="js/script.js"></script> <script type="text/javascript"> var $ = jQuery.noConflict(); $(document).ready( function($){ // buttons for next and previous item var buttons = { previous:$('#jslidernews1 .button-next') , next:$('#jslidernews1 .button-previous') }; $('#jslidernews1').lofJSidernews( { …

Member Avatar for pixelsoul
0
358
Member Avatar for Reliable

Hello All, I'm just learning JS although I have a fundamental knowledge of Actionscript 3.0 (which is based on JS). I'm a little confused right now as I'm following the lessons on appendTo.com. It seems in JS functions are made into variable and those variable are invoked. Is that how …

Member Avatar for Troy III
0
147
Member Avatar for techyworld

hi can someone help? I'm retrieving from database and i want to display it on screen. i use aler in my ajax to see if it's working but it's not alerting anything. anyone can tell me what's wrong? client: function client{ ... .... public function GetMarks(){ $query=mysql_query("SELECT users.name, marks.MarksHighest FROM …

Member Avatar for techyworld
0
173
Member Avatar for Himanshu Chawla

what is jquery ? What is java script and what are prerequirements for learning javascript ? What is the diiference between advance java and core java ? What is AJAX ? As i am beginner to JAVA and want to learn about java and thats y i am asking this …

Member Avatar for rotten69
-1
445
Member Avatar for Violet_82

Chaps, I was wondering what this.id (and for that matter this.whatever) is in jquery and how to use it. A few quick examples are here: <!DOCTYPE html> <html> <head> <script src="http://code.jquery.com/jquery-latest.js"></script> </head> <body> <img title="hat.gif"/> <script> $("img").attr("src", function() { return "/resources/" + this.title; }); </script> </body> </html> and another one: …

Member Avatar for Violet_82
0
154
Member Avatar for Violet_82

Hi all, I am slightly confused about passing functions to the addClass method. This code is taken from the jquery.com site http://api.jquery.com/addClass/: <!DOCTYPE html> <html> <head> <style> div { background: white; } .red { background: red; } .red.green { background: green; } </style> <script src="http://code.jquery.com/jquery-latest.js"></script> </head> <body> <div>This div should …

Member Avatar for Violet_82
0
227
Member Avatar for techyworld

Hi can someone explain me this code? actually i need to write another function like this but without passing any parameter, then what should I insert in data? the code is using the parameter id in data but what if i dont have any parameter? server.prototype.GetSpeed=function(id){ $.ajax( {url:"marks.php", data: {id:id}, …

Member Avatar for radhakrishna.p
0
167
Member Avatar for ChrisJ

I have this Form that works successfully (I know it's not state-of-the-art). I simply want to add code to make Contact Name field mandatory. Can you help me? I don't know how much code I should post. Here's some: <script type="text/javascript"> function checkemail(){ var str=document.myform.email_address.value; var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i; if (filter.test(str)) testresults=true; …

Member Avatar for Echo89
0
146
Member Avatar for waqar100
Member Avatar for radhakrishna.p
0
70
Member Avatar for Dani

Article pages on DaniWeb (for those of you who live in the US) have a hover effect (similar to that on our homepage for everybody). It works fine in all browsers *except* for Firefox. Firefox is just super temperamental: it works a few times and then just mysteriously stops working …

Member Avatar for Troy III
0
425
Member Avatar for piers

Hi, I am trying to create toggle buttons for a page with profiles in. I have around 60 buttons on the page and want to try not to define the click function 60 times: $(document).ready(function(){ $(".button1").click(function(){ $(".1").toggle(); }); $(".button2").click(function(){ $(".2").toggle(); }); $(".button3").click(function(){ $(".3").toggle(); }); $("p").css({display: "none"}); }); So I was …

Member Avatar for piers
1
1K
Member Avatar for David2012

Hello Everyone! A little help needed- I have a webpage that's like a long directory where you keep scrolling down and it has lines of links that obviously open up another page, although in the same window. Now the problem is that when one clicks the HOME link to go …

Member Avatar for JorgeM
0
127
Member Avatar for turpentyne

I've got two huge scripts that are basically duplicates with only minor differences. They run the same exact animations and commands, but one function applies to a set of images. the second to the text navigation. I've been trying to figure out how to combine these into one, and they …

Member Avatar for turpentyne
0
118
Member Avatar for turpentyne

I'm trying to call a function in two different event handlers. The function runs, but doesn't seem to recognize the passed variable ( or maybe the variable isn't getting passed). It just triggers the alert "nothing". I'm not understanding how to use console.log() or where exactly to look and see …

Member Avatar for McLaren
0
132
Member Avatar for Tko_1

All i would like to do is insert an image next to the question. Im sure this is a very easy thing to do. I just cant seem to do it. any help would be great, thank you '<input type="hidden" name="questions[' + n + '][number]" value="' + n + '" …

Member Avatar for Tko_1
0
161
Member Avatar for ChrisXL

Hey everyone. Got a problem that I really need help solving. I have a page where a user is able to search a database for certain criteria (species/location/dates etc). What I have so far is when the form is submitted, the values are posted to a PHP script, which performs …

Member Avatar for pritaeas
0
313
Member Avatar for riahc3

Hey I have a program in retrieving data from a HTML page with Javascript using Java. Lets say I have the structure of C:/index.html C:/js/script.js index.html contains: [code] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <script type="text/javascript" src="js/script.js"></script> </head> <body> <a href="javascript:void(0);" id="add"><img src="images/menunew.png" alt="plus" border="0" /></a> …

Member Avatar for Sammy@
0
2K
Member Avatar for turpentyne

I'm trying to get this code to toggle between innerhtml - turn off embedded music. But it doesn't seem to be firing? The html in question: <span id="music"> <embed src="http://thewalshgroup.ca/dev/the-nest/music/12_full_prom-night_0132.mp3"autostart="true" loop="true" width="2" height="0" id="player"> <noembed> <bgsound src="http://thewalshgroup.ca/dev/the-nest/music/12_full_prom-night_0132.mp3"> </noembed> </embed> </span> and the jquery function: $(document).ready(function() { var playing = true; …

Member Avatar for turpentyne
0
411
Member Avatar for chandub

hi every one. I have form and in that that form some of fields values are taken from request object . and am validating fields values using struts validate() method. once i submit form if any error in fields validate method will throws error but the request object content is …

Member Avatar for radhakrishna.p
0
131
Member Avatar for turpentyne

I'm a bit new with javascript/jquery. I've taken over a page design with images and links that animate on rollovers. I've almost got things working, but there's one last glitch. The mouseover effects of an image growing/shrinking work fine when the page is first loaded. But if the user clicks …

Member Avatar for turpentyne
0
349
Member Avatar for turpentyne

I have several rollover images that resize, then return to original when moused over. When an image animates, its movements are sequential, not synchronous. It gets taller, then wider. I want these to happen at the same time. Any thoughts? Here's a snippet of my current animation: $(".square.one,#link_nest").mouseenter(function(){ if ($(".the-nest")[0]){ …

Member Avatar for turpentyne
0
83
Member Avatar for asif49

I'm writing a jquery script that is to be run in a large number of websites all written in different ways. My intention is to place certain html tags around bits of text within the code - sounds simple? But it isn't. One approach which I've tried is to use …

Member Avatar for asif49
0
89
Member Avatar for RaptorMarketing

What would it take and cost to create something like this below? Where they can select different options and see the changes to the glove. http://www.akademapro.com/glove-builder/ I see the website is built in wordpress, is this a plugin? Any help would be apreciated.

Member Avatar for AleMonteiro
0
64

The End.