15,121 Topics
| |
Hi I have this code of zebra stripes. [CODE] <style type="text/css"> <!-- .paint {background: #caf2fe;} --> </style> <script type="text/javascript"> $(document).ready(function(){ $("tr:odd").addClass("paint"); }); </script> <table cellpadding="0" cellspacing="0" width="100%"> <tr> <td>Text1</td> </tr> <tr> <td>Text1 details</td> </tr> <tr> <td>Text2</td> </tr> <tr> <td>Text2 details</td> </tr> <tr> <td>Text3</td> </tr> <tr> <td>Text3 details</td> </tr> </table> [/CODE] … | |
Can anyone tell me the diff between the following two statements [CODE] var username=document.forms['myForm']['username'].value; var username=document.myForms.username.value; [/CODE] | |
Hi All I need open a document in Read only mode using Javascript. i find out code like "wordDoc.ActiveWindow.View.Type = Word.WdViewType.wdReadingView;" how to use this into javascript any one help me for this... Thanks | |
[CODE] <html> <head> <style type="text/css"> .all_display { border-left:8px solid lightgray; border-top:8px solid darkgray; border-right:8px solid #505050; border-bottom:8px solid #505050; background-color:white; width:60%; margin-left:20%; } .inner_tablecell { font-size: 14px; font-weight: bold; text-align: center; width: 12px; } .fake_link { color: blue; font-weight: bold; text-decoration: underline; cursor: hand; cursor: pointer; } .img1 { background-image: … | |
Is it possible to get a websites source code using ajax? | |
I am have been trying to teach myself ASP.NET and Javascript for a project and have been stuck on one problem for literally dozens of hours now. I found a really nice javascript drag-and-drop list online, copied the source offered and split the css into a .css file, the javascript … | |
hi guys i have a problem i am searching for it but couldnt find that code right.can any one fix it.i want to change my text field colour to red while it is left empty or doesnt specify the condition applied on this...here is my code below [CODE] <!doctype html> … | |
[CODE] <html> <HEAD> <style type="text/css"> body { background-color: black; color: black } a { font-weight: bold } a:link { background-color: black; color: blue } a:visited { background-color: black; color: blue } a:active { background-color: black; color: blue } a:hover { background-color: white; color: maroon} input { font-family: monospace; font-size: 24px; … | |
[CODE] <HTML> <HEAD> <TITLE>Number Blocks</TITLE> <!-------------------- Design --------------------> <STYLE> .bigcell { BORDER-RIGHT: #6699ff 5px solid; BORDER-TOP: #6699ff 5px solid; BORDER-LEFT: #6699ff 5px solid; BORDER-BOTTOM: #6699ff 5px solid; BACKGROUND-COLOR: #6699ff; TEXT-ALIGN: center } .cell { BORDER-RIGHT: #6699ff 2px solid; BORDER-TOP: #6699ff 2px solid; FONT-WEIGHT: bold; FONT-SIZE: 10pt; BORDER-LEFT: #6699ff 2px solid; … | |
There is an extra row on top and on the side of 1-10 that I don't want on my table. How can I remove this? [CODE]<script type="text/javascript"> /* <![CDATA[ */ var numRows = "10"; var numCols = "10"; if (isNaN(numRows) || isNaN(numCols)) { }else { var tblHTML = "", rowHTML; … | |
i want to change the default value of dropdown list to 0 i.e selected index value shud become 0 when press the cancel button so that watever i selected previously is removed i want it in javascipt only...i have done it in c#...since there s no forum for javascript i … | |
Hey; I am learning some javascript. I tried to write a trivial code to validate email but my code does not seem to work it should. It should turn the background color of text box green when mail contains both '@' and '.' characters and red otherwise. However what the … | |
I have a web site written in html. I want to have a warning mesage in my web page saying they are not allowed to copy any of my data. Also, if they do copy, how can i tell who copied my data? Pls advise. Thx. | |
I need a auto indent program for .pd's, .js's and html code what do you recommend? | |
On a webpage, I have a table (generated on page load through php/html) on the side that has several links (one on each row), and when you click any of them it calls a javascript function (href='javascript:newtable()') that uses an ajax requests to populate the table again (performed by a … | |
can anyone help me to create jquery, javascript one page template exactly or looklike below [URL="http://www.istockphoto.com/stock-flash-3103298-curtain.php?st=236fbf5"]http://www.istockphoto.com/stock-flash-3103298-curtain.php?st=236fbf5[/URL] | |
Hello All, Assume i have the following code: [code] // This code is defined in one file : editor.addMenuItem = function( name, definition ) { if ( groupsOrder[ definition.group ] ) menuItems[ name ] = new CKEDITOR.menuItem( this, name, definition ); }; // This code is defined in another file: … | |
Hi guys/gals, I have a menu with a div displaying onmouseover, and hiding onmouseout, it works great except in IE if I click on the [ICODE]<select>[/ICODE] tag, it triggers the mouseout event, interestingly enough the same does not happen when I click on a text field.. Code Example: [CODE] <ul> … | |
I have been racking my brain for days now and cannot get the button to work with my tell a friend script. <form> <input type="button" value="Close Window" onClick="window.close()"> </form> I'm trying to add it to my web site [snipped] Any help or guidance would be appreciated. Thanks Cake | |
Hi again,Guys.Here's my problrm. In [B]Appointments.php[/B] ,In the [B]Sector Drop down list[/B] when i select a sector,through AJAX i have selected the list of hospitals for the sector using [B]fun1()[/B] and displayed it back here in [B]appointsment.php[/B].Now that's ok. But when i try to acess the hospital select lists value … | |
[CODE]<script type="text/javascript"> function insertPreference() { var row = document.getElementById('voteTable').rows[0]; var cell = row.cells; var id = cell[0].innerHTML; var title = cell[1].innerHTML; alert(id); alert(title); } </script> <table id="voteTable" border="1"> <tr> <td id="id">3</td> <td id="title">This is an example of storing the table value into a database.</td> <td id="vote"> <input type="radio" name="yesorno" value="true" … | |
Hi I'll describe the following scenario: I got a table with td's and each of the got onchange and onclick when i change value of a td and click on other td i get the onchange event(of the first td) being fired and then the onclick (of the other td) … | |
Hi all, I am generating a html report displaying the records. In that report their are 10 rows and 4 columns. In 4th column i am adding the button. Now i want to use button click event i.e onclick() . 1) how i call the javascript function/Javascript. 2) how can … | |
Hi ppl, I need a javascript that can do.. "When you leave a page to alert you how many times have you clicked". I have no ideas, and almost no exp in this.. So PLEACE help me.. Sorry for the bad english.. | |
This is javaScript based ASP.net web application. [CODE] <%@ Page Language="C#" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <script language="javascript" type="text/javascript"> function oddEve(){ var rand = Math.random(); rand = Math.ceil(6*rand); if(rand % 2 == 0){ document.write("Odd number: "); } else{ document.write("Even number: "); } document.write(rand); } </script> <html … | |
hi, thank you for helping in advanced i faced some punctuation problem during i using ajax I used ajax with Get Method to pass some value from textarea to update the database.My problem is: example: "Hi, I'm Jane~" database updated : "Hi, I'm Jane~" but the response.text of ajax give … | |
hi, am working on a php site, i need a functionality where titles of last four posts would show up, i know how to get last four titles. but dont know how to make them blink one by one on same place,like i have four titles name A B C … | |
How to extract a website TITLE, META KEYWORDS and META DESCRIPTION by javascript for example [URL="www.surfpack.com/bangladeshiwebdirectory_com"]www.surfpack.com/example_com[/URL] site has exactly extracts [[url]www.example.com][/url] websites TITLE, META KEYWORDS and META DESCRIPTION. How to do it by javascript mainly in HTML? Thankyou! | |
Hey everyone, I'm working on a web application that's supposed to be compatible with all browsers, yet IE, as usual, is giving me one hell of a headache. I'm posting the code below, it's very straightforward... 3 divs containing ordered lists are made hidden/unhidden via a select menu. The problem … | |
This looks as it should except that it needs more spacing between the columns. How would I do that? [CODE]<script type="text/javascript"> /* <![CDATA[ */ var numRows = "10"; var numCols = "10"; if (isNaN(numRows) || isNaN(numCols)) { }else { var tblHTML = "", rowHTML; for (var row = 0; row … |
The End.