No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
5 Posted Topics
The below code what you have suggested earlier doesnt work... [code]<script>function changeStyle(id, newClass){ document.getElementById(id).[B]style.className [/B]= newClass;} </script>[/code] [B]sytle.className[/B] will not work when used with document.getElementById it should be [I][ICODE]document.getElementById(id).className [/icode][/I] instead u need to use this code [code]<script> function changeStyle(id, newClass){ document.getElementById(id).[B]className[/B] = newClass; </script> }[/code] [code=html] <td id="oneTd" class="style1" …
to create a <iframe> add this code in your content fie ... [B][COLOR="Green"]<iframe id="iframe1" width="500" height="300" align="right" scrolling="auto" src="www.yahoo.com"></iframe>[/COLOR][/B] u can change the src to the page which u want to dispal in iframe... hope it works... :)
Using "cmd prompt"you can always ping the host name and get the IP of the server and try connecting to it with the given user name & password...
Check this code...u can use [B]innerHTML [/B]instead of "Alert box" [CODE=html] <html> <head> <style> .message {font-family:Arial, ;font-size:15px;color:#FF0000; } </style> <script> function validate(frm) { var dataIsValid = true; var showmsg= document.getElementById("showMesage"); /* your validation codes goes here */ if(dataIsValid) { showmsg.style.visibility = 'visible' ; showmsg.style.display =''; showmsg.innerHTML="Thank you"; return(true); } else …
Try this...it works both in IE & FF..with onClick as mouseEvent [ICODE] function changeBgColor(){ var field=document.getElementById("one"); var field2=document.getElementById("firstname"); if (field.checked == 1) field2.style.backgroundColor="red"; else field2.style.backgroundColor="white"; } [/ICODE][ICODE] <input type="checkbox" id="one" onClick="changeBgColor()"> <input type="text" id="firstname"> [/ICODE]
The End.
zabindia