15,120 Topics
| |
Hi I would like to change a css rule,with javascript this is what i have so far?? [CODE] body{ font-family: Arial, Helvetica, sans-serif; font-size: 12px; /* [disabled]line-height: 17px; */ color: #ffffff; background: url(images/bg.jpg); <script> function changeStyle() { var mySheet = document.styleSheets[0].rules || document.styleSheets[0].cssRule; for(var i=0; i<mySheet.length;i++) { if(mySheet[i].selectorText == "body") … | |
HI there, I have done a little work on a simple script to change images on mouse over and on mouse off. It was meant to be a very simple one but it is not working and I am not quite sure why. here's the coplete html and script code: … | |
Hello again,I'm writing a blackjack game for class,it generates two random numbers that select from a switch statement that creates a string file name of a card e.g "AceDiamonds.gif", it than fills an array deck[] with these strings,I want to fill the array with the full deck of 52 cards,and … | |
Hi All, I found this code to disable dates in jquery datepicker [CODE]$(function() { $( "#pickdate" ).datepicker({ dateFormat: 'dd MM yy', beforeShowDay: checkAvailability }); }) for the datepicker stuff, and then: var $myBadDates = new Array("10 October 2010","21 October 2010","12 November 2010"); function checkAvailability(mydate){ var $return=true; var $returnclass ="available"; $checkdate … | |
Hello all, I am looking to implement a new feature on my website. I would like to get a log in form that would take the members to an update page where they can update their details showing on my website Here are the features I need: - Log IN/OUT … | |
Dear Experts I have following codes [CODE]<html> <head> <title>this is first math exercise within Java Script</title> <script lanuage="Javascript"> function total() { Var amount1 = text1.value Var amount2 = text2.value Var total=eval(amount1) + eval(amount2) text3.value=total alter("Correct Answer") } </script> </head> <body> <center> <form> <table width="20%" border="1" cellpadding="1" cellspacing="1" > <tr> <td … | |
[CODE] <form name="myForm" method="post"> <textarea id="commentarea"></textarea> <input type="text" name="locate" value="<%=rs.getString("location")%>"> <input type="button" value="View Comment" onclick="getComment()"> </form> function getComment(){ <% String locate=request.getParameter("locate"); %> var location = "<%= locate%>"; document.getElementById('commentarea').value = location; } [/CODE] I know this is the worst way to access it, but i need to access it in this … | |
Hi I've been searching for an example on how to created multiple dropdown lists in Ajax and finally managed to find one: [URL="http://www.coursesweb.net/ajax/multiple-select-dropdown-list-ajax_t"]http://www.coursesweb.net/ajax/multiple-select-dropdown-list-ajax_t[/URL] I got the example up and running on my server, but when I started to modify it to fit my own database, I got a problem with … | |
The code below was originally posted by langsor in 2008, I’ve adapted it to pass JavaScript values to a new page. I’d like the link to open the page in a new window, tab or iframe. I believe the code for a new window involves something to do with “target=_blank” … | |
Hi Sir , I have a problem in drop down menu .actually i make website in joomla ,so now i wanna change drop down menu of my website , i have download drop down menu "S5 flex menu" in this menu there are one file is mootools.php . when i … | |
I have a dropdown menu and some buttons below in my HTML: [CODE]<p> <select name="numberDrop" id="numberDropId" onClick="getButtons()"> <option value=""></option> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> <option value="4">4</option> </select> </p> <p> <input class="answerBtns" name="answerA" type="button" value="A" /> <input class="answerBtns" name="answerB" type="button" value="B" /> <input class="answerBtns" name="answerC" type="button" value="C" /> <input class="answerBtns" … | |
[B]Hello guys, I hope someone can help me on my problem. Actually I insert a jquery funtion to pause my slideshow but it didn't work..[/B] [B]Thanks for the help in advance. Here is my codes Variables for the links and images of slideshow.[/B] [CODE]<script> var links = new Array(); links[0] … | |
hello all, after tried so much now posting here. i have two programs sql.php and form.jsp. i want to do insert values into mssql database from user input form. sql.php is able to insert the values into database. i have connected database using ODBC.form.jsp is able to give user input … | |
Hi there, Script to show on the web page that how many times user loaded it or refresh it. the counter restarted from 0 on closing the browser and open it again. any help here will be appreciated. Thanx | |
why isn't this working? [CODE] $('body').find(".overcolor").click(function(){ alert("hi"); }); [/CODE] | |
I had a given a assignment of java script as to form a script that changes the background image of the document after equal interval of time.as i am a beginner to programming I had formed a script that should change background and a loop stated for image name to … | |
hey i'm trying to make a traffic light that when the mouse rolls over a certain light the colour will show. then if the light is clicked the colour will either turn on or off... this is what i have so long. [CODE]<html> <head> <style type="text/css"> #trafficLight { border:1px solid … | |
Hi All, Hope your all well Im really new to the world of JSP & AJAX, my question is, I need to retrive names from a database and present them to a user on a JSP form, but I shouldnt show any database interaction on the client end, So as … | |
I have a spinner where user enters in their value or uses the buttons to increase or decrease the value. When the user is happy with the value in the spinner the user submits the value. The value would then appears in another table inside a textbox. What my question … | |
how to find elements which has text and a "-" using find() ? | |
i wrote this code but noting happens.. can't find the error. even firebug is empty :( please help soon! [CODE]$(document).ready(function(){ $.ajax({ type: "GET", url: "tinymce.xml", dataType: "xml", success: function(xml) { $(xml).find('userdata').each(function(){ $(this).find('dataset').each(function(){ var title = $(this).find('redo').text(); var id = $(this).find('redo').attr('id'); //var url = $(this).find('url').text(); alert(id); //$('<div class="items"></div>').html('<a>'+title+'</a>').appendTo('#system'); }); }); } … | |
Hey Guys, I have an issue with my checkbox and the values that are posted to the next page. The issue is that each time the checkbox is clicked it just adds another value. example - if i check it and uncheck it and check it again i will get … | |
I have a switch function with four cases: each case executes a sequence of six css changes. How to stop it, if the viewer wants to abort, by choose another menu option? I've done a trawl, and the closest I've come to finding something which could be adapted is from … | |
Hello, I need to show the date picker in an input field that is inside a form. I have index.php which has the code for the date picker, I just need to link it to the input field. I have the form in another file as follows: [icode] <form id="inputArea" … | |
Hi folks, I've been charged with coming up with a image-grid menu like what one sees here: [URL="http://www.theispot.com/dfullarton"]http://www.theispot.com/dfullarton[/URL] If you click on an image in the grid, the space just below the row opens and a div show a bio and additional images. What I'm confused about is that each … | |
i need to sum anything that is input in input form numbers. And this has to be in order like 5,4,3 and then it has to sum like 5+4+3 = 12. Can anyone help? I came as far as the code shows above. this is the example of how it … | |
I included a jQuery handler for my dropdown menus so that when something is selected in the first dropdown menu, it will manipulate the options in the second dropdown menu. Now what the user does is pick the option type in the first dropdown (`OptionDropId`) menu and then in the … | |
It makes since that, when working with javascript, document.getElementById() can't find the Id of an object that hasn't yet been added to the DOM, however when I nest document.getElementById() in a function and call it after the object has been created, document.getElementById() still can't find the object. is there a … | |
I have a block of JavaScript code that is designed to be embedded into any web page. It displays a list of items from a database. In the .js file is actually a lot of PHP code within JavaScript. The problem: The cut-n-paste widget does not actually show up. It's … | |
I am looking for help creating a grid/table that is editable online. I have browsed online for solutions, but I am short of time & I seem to getting more confused the more I search. Basically I am trying to create a staff rota that the admin staff can edit … |
The End.