15,127 Topics
| |
I got 3 frames to my animation and I'm trying to get it to play correctly. BUt, it will only play 1 frame of the animation. Here is my code: function playHomeAnimation(){ var timer =0; timer+=1; if(timer==0){ document.getElementById('home').src="home3.jpg"; } else if(timer==1){ document.getElementById('home').src="home2.jpg"; } else if(timer==2){ document.getElementById('home').src="home1.jpg"; } else if(timer>=3){ timer … | |
Hello, I need something quite similar to the script that eventually loads in the main area here: http://www.discmakers.com/livequote/ -- I'm looking for a way to allow the user to input type of jewel case, packaging, quantities, etc. I like the way this example has drop-down menus for the user to … | |
Hi everyone, I am trying yo loop through an array property that is multi-valued and so the condition is if that property has what the value specified then alert with a message saying hello.. The other idea is kinda complex that is to check using RegExp... Here is the code.. … | |
Hi! I'm hoping someone can help me here, I've been looking at highcharts as a way of graphing my dynamic data from my sql db....What I've come up with so far is below, it's strange, it seems correct, the data is correct, however, I can't get my chart to render, … | |
Dear All friends, I am developing one application which is running on ie all versions. but when I run same application on firefox/mozilla it shows error. html code: **<iframe id='mFrame' name='mFrame' class='mFrameCSS' src="" frameborder=0 vspace=0 hspace=0 marginwidth=0 marginheight=0 width=100% scrolling=no></iframe>** JavaScript code : **<script language=javascript> var lMWFrame=document.getElementById('mframe'); alert('lMWFrame :--->'+lMWFrame); //shows … | |
what is frameworks, whats the benefits of framework which is famous framework how to use it , what is cakephp i know what is cms but i didnot know when a person ask me in intervew which version of cms are u using,?i always make my own cms for website … | |
<div style='float:left;padding:5px 5px 5px 0;'><a expr:share_url='data:post.url' href='http://www.facebook.com/sharer.php' name='fb_share' type='box'>Share</a><script src='http://static.ak.fbcdn.net/connect.php/js/FB.Share' type='text/javascript'></script></div> i need to add '<?php echo $strALink;?>' this variable into tis code . for facebook sharing i don't know . plz help me. | |
Kindly note the error which i made in my code : <html> <head> <script type="text/javascript"> function createCanopyPath(context) { // Draw the tree canopy context.beginPath(); context.moveTo(-25, -50); context.lineTo(-10, -80); context.lineTo(-20, -80); context.lineTo(-5, -110); context.lineTo(-15, -110); // Top of the tree context.lineTo(0, -140); context.lineTo(15, -110); context.lineTo(5, -110); context.lineTo(20, -80); context.lineTo(10, -80); context.lineTo(25, … | |
**Ok i have this script it opens desired page then closes at desired amount of time. How do i make it redirect to something rather than google.com when closing** <!DOCTYPE html> <html> <head> <meta charset=utf-8 /> <title>Test Page</title> <style> body { font-family: sans-serif; } </style> </head> <body> <p><a href="#" id="target">Start … | |
Ok, I'm new to visual studio 2010 and also new to AJAX in .NET (I've done AJAX via jquery and classic ASP before). I want to simply make a call from a client-side function to a server-side ASP.NET (VB) function to get a set of data, could be a datatable, … | |
It is possible to build the deaktop web application with the extjs. Please see the demo at here: http://www.tomatocart.com/products/store-demo.html It's very good. | |
Hi there, I was trying different types of array initialisation in Javascript and the book that I was reading, said it is possible to initilaise an array with a speicified number of elements in it. However, I tried it and unfortunately, it didn't work. As you can see the code … | |
I have an ASP Classic page with SHIFT_JIS charset. It has a meta tag under the <head> section like this: <meta http-equiv="Content-Type" content="text/html; charset=shift_jis"> My page has a text box (txtName) that should only allow 200 characters. I have a Javascript function that validates the character length, which is called … | |
I have written a form in html and wish to submit it and run some php code, however once the php file has finished it main job I want to use it to redirect to my homepage where I am using AJAX to change content (where the form is). Is … | |
Hi there, I was wondering what the string.split() does. And another question is that I want to loop through the class like Math and find out what functions are defined in it.But, I was not too sure how to that. I tried a couple of things but they unfortunately didn't … | |
I have the following script: $('#login-box .forgot-pwd').click(function (e) { e.preventDefault(); $('#login-box #main-login').hide("fast"); $('#login-box .login-error').hide(); $('#login-box #forgot-login').show("fast"); $('#forgot-username').focus(); $('#login-box .forgot-send').click(function (e) { e.preventDefault(); $.ajax({ url: '/login.php', data: $('#login-box form.get-password').serialize() + '&action=forgot', type: 'POST', success: function(html) { if (html == 'success') { $('#login-box #forgot-login').hide("fast"); $('#login-box').append('<p>Your password has been emailed to you</p>'); $('#mask … | |
I have city and its corresponding locality. When user clicks city then its locality will show in Dropdown-Checkbox. How I can do with jQuery, AJAX and MySQL. | |
Hello, This is my first tumblr theme attemt and this is what i have got so far, the masonry is working on the main page, but when the infinite scroll jquery plugin loads the second page the sorting acts funny, here are the urls → Live Url : http://rmlthemer1.tumblr.com Complete … | |
Hi everybody, what can i missing my code jquery click function display only error function alert msg. plz help me. function changePage(page) { $("#criteria_page").val(page); $("#search_new_friend").click(); } function inviteToMypeople(personalId) { if (confirm("Are you sure you want to invite " + full_name + " to your layer?")) { $.ajax({ url: $("#url_invite_to_layer").val(), data: … | |
Hi, I am very new in writing javascript so please apologize for that if I am asking very simple things. I am trying some thing like this but it's not working: <script type="text/javascript"> $(document).ready(function() { $("#accordion").accordion(); }); $(window).load(function() { $('#slider').nivoSlider(200); }); </script> Please can anyone help me regarding this. I … | |
| I'm struggling with a bit of JavaScript and I was wondering if somebody could help? I have the following code in some JavaScript... var state = document.getElementById(id_image).src; id_image contains a specific ID of an image file that I'm looking for. The result should return the image URL. However, if the … |
HI guys, I was reading some tutorial about a crossfading gallery, and I am having a few problems understanding it Here's the code. HTML (just the relevant bits) ... <div id="photos"> <img alt="Glendatronix" src="../../images/glenda_200.jpg" /> <img alt="Darth Fader" src="../../images/fader_200.jpg" /> <img alt="Beau Dandy" src="../../images/beau_200.jpg" /> <img alt="Johnny Stardust" src="../../images/johnny_200.jpg" /> … | |
i have the code in my project- <Script language="JavaScript"> function goto(form) { var index=form.select.selectedIndex if (form.select.options[index].value != "0") { location=form.select.options[index].value;}} </SCRIPT> <FORM NAME="form1"> <SELECT NAME="select" ONCHANGE="goto(this.form)" SIZE="1"> <OPTION VALUE="">-------Choose a Purpose------- <OPTION VALUE="<?php echo base_url()."admin_panel/post_pmb/project"; ?>">Project Discussion </option> <OPTION SELECT="SELECTED" VALUE="<?php echo base_url()."admin_panel/post_pmb/general"; ?>">General Discussion</option> </SELECT> </FORM> in this code … | |
I have two dropdwon box. First box has names of the states. Choosing a state will populate the second dropdown box that contains cities of that selected state. For all states city names are stored in mysql database table. now I am little confussed how to model the table and … | |
I'm not very familiar with Javascript or Regex but I built a script that is working well with one small flaw in the Regex part. What I want to do is to find commas following alpa-numeric characters (actually almost anything other than a double quote) and then replace the comma … | |
is it possible to access an Iframe without a source in IE8 and setting it's content? (e.g. iframe_obj.contentWindow.document) For example I wanted to get the head tag inside that dynamically created iframe: iframe_obj.contentWindow.document.getElementsByTagName('head') Then setting it's content: iframe_obj.contentWindow.document.getElementsByTagName('head')[0].appendChild(dom_obj); | |
Hello, I am trying to create a jquery banner. I found lots of tutorials and managed to create a banner but I still need some help. I have 4 divs: First div slides from top Then Second div fades in Then Third div fades in and changes it's width Then … | |
Hi people, need some help... I have a dropdown list with some options in it.. I have 2 buttons Select all and Reset. What I want is, on click of Select All button, all the options inside it should get selected. and Reset button should clear the entire form. This … | |
<script type="text/javascript"> function moveover() { document.getElementById('image').width="1080"; document.getElementById('image').height="600"; } function moveback() { document.getElementById('image').width="180"; document.getElementById('image').height="100"; } </script> </head> <body> <img id=image src=images/PCF10.jpg onmouseover="moveover()" onmouseout="moveback()" width="180" height="100" /> <br /> <br> <body> <img id=image src=images/PCF94.jpg onmouseover="moveover()" onmouseout="moveback()" width="180" height="100" /> <br /> </body> </html> I have a page with multiple small images posted … | |
| Hi, At the moment I'm learning Jquery and I'm using youtube for my tutorials which is great. I've downloaded the Jquery toolkit and I'm just playing with it. Just wondering what are the best resources to use? What do you use? |
The End.