Jump to content

Search the Community

Showing results for tags 'javascrpt'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • W3Schools
    • General
    • Suggestions
    • Critiques
  • HTML Forums
    • HTML/XHTML
    • CSS
  • Browser Scripting
    • JavaScript
    • VBScript
  • Server Scripting
    • Web Servers
    • Version Control
    • SQL
    • ASP
    • PHP
    • .NET
    • ColdFusion
    • Java/JSP/J2EE
    • CGI
  • XML Forums
    • XML
    • XSLT/XSL-FO
    • Schema
    • Web Services
  • Multimedia
    • Multimedia
    • FLASH

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Languages

Found 3 results

  1. Hello pls How i have to format style <li> with color white or any: document.body.getElementById("li").style.Color = "#000000"; See the webpage Menu <script> switch (new Date().getDay() % 2) // { default: document.body.classList.add("day-even"); function display() { var co=document.getElementById("li"); co.style.color="red"; } OR: // document.getElementById("li").style.Color = "red"; document.write('<center><img src="https://arenas.pagesperso-orange.fr/GradientExample/eesti.png" style="height:80px; width:130px;"></center>'); document.body.style.scrollbarFaceColor="#084b8a" document.body.style.scrollbarArrowColor="#000000" document.body.style.scrollbarTrackColor="" document.body.style.scrollbarShadowColor="" document.body.style.scrollbarHighlightColor="colorname" document.body.style.scrollbar3dlightColor="" document.body.style.scrollbarDarkshadowColor="colorname" // [url=https://]This be ![/url] break; case 0: document.body.classList.add("day-odd"); document.body.getElementById("li").style.Color = "#000000"; document.body.write('<center><img src="https://arenas.pagesperso-orange.fr/GradientExample/ukraine.png" style="height:80px; width:130px;"></center>'); document.body.style.scrollbarFaceColor="#005bbb" document.body.style.scrollbarArrowColor="#ffd500" document.body.style.scrollbarTrackColor="#005bbb" document.body.style.scrollbarShadowColor="#ffffff" document.body.style.scrollbarHighlightColor="colorname" document.body.style.scrollbar3dlightColor="colorname" document.body.style.scrollbarDarkshadowColor="colorname" break; } </script> Thanks for your help Arnold
  2. Hi, I just want to seek help resolving my javascript, First, I already have a dynamic textboxes where i able to enable and disable with a checkbox. I need to have atleast 100 textfields wherein my javascript, I need to declare this variables below. which are already like ten(10) but i need a 100. My question is, how can I make this easy and short? <script type="text/javascript"> function letter_changed(letterCheckBox){ if(letterCheckBox.checked){ document.getElementById("requestChemicalName").disabled = false; document.getElementById("requestChemicalName2").disabled = false; document.getElementById("requestChemicalName3").disabled = false; document.getElementById("requestChemicalName4").disabled = false; document.getElementById("requestChemicalName5").disabled = false; document.getElementById("requestChemicalName6").disabled = false; document.getElementById("requestChemicalName7").disabled = false; document.getElementById("requestChemicalName8").disabled = false; document.getElementById("requestChemicalName9").disabled = false; document.getElementById("requestChemicalName10").disabled = false; } else { document.getElementById("requestChemicalName").disabled = true; document.getElementById("requestChemicalName2").disabled = true; document.getElementById("requestChemicalName3").disabled = true; document.getElementById("requestChemicalName4").disabled = true; document.getElementById("requestChemicalName5").disabled = true; document.getElementById("requestChemicalName6").disabled = true; document.getElementById("requestChemicalName7").disabled = true; document.getElementById("requestChemicalName8").disabled = true; document.getElementById("requestChemicalName9").disabled = true; document.getElementById("requestChemicalName10").disabled = true; } } </script> Thanks in advance!
  3. Hello gentlemen , i have script , that when i click on button , it should turn checkboxes on value true , but it does it only for like 1sec and it turns it back to false . Can someone help me with that please, script <!DOCTYPE html><html><body><form name="lol"><input type="submit" name="jedna" onclick="mouse(jedna)" value="klikjedna" /><input type="submit" name="dva" value="klikdva" onclick="mouse(dva)"/><input type="submit" name="tri" value="kliktri" onclick="mouse(tri)"/></br><input type="checkbox" name="matej" value="syr" id="polovnik"/>Syr </br><input type="checkbox" name="matej" value="sunka"/>sunka</br><input type="checkbox" name="matej" value="ananas"/>Ananas</br><input type="checkbox" name="matej" value="tuniak"/>Tuniak</br><p> velkosti:</br><input type="radio" name="marek" value="Mala">Mala</br><input type="radio" name="marek" value="Velka">Velka</br<</p></br><input type="button" name="swag" onclick="Matula()" value="klikni"/></form> <script type="text/javascript">function Matula(){ var x=document.getElementsByTagName("body")[0]; var y=document.createElement("p"); var g=document.createTextNode("Vasa pizza bude obsahovat:");y.appendChild(g); x.appendChild(y);var swag=document.forms["lol"].matej.length; for(var i=0;i<document.forms["lol"].matej.length;i++){if(document.forms["lol"].matej[i].checked) { var torko=document.getElementsByTagName("body")[0];var q=document.createElement("p"); var w=document.createTextNode(document.forms["lol"].matej[i].value); q.appendChild(w); torko.appendChild(q);}} var m=document.forms["lol"].marek.length;for(c=0;c<m;c++){if(document.forms["lol"].marek[c].checked){var n=document.getElementsByTagName("body")[0]; var b=document.createElement("p"); var k=document.createTextNode("Veľkosť je:" +document.forms["lol"].marek[c].value); b.appendChild(k); n.appendChild(;}}}; </script><script>function mouse(p){ if(p.value=="klikjedna"){for(var u=0;u<document.forms["lol"].matej.length;u++){document.forms["lol"].matej[u].checked=true};} else if (p.value=="klikdva"){document.getElementById("polovnik").checked=true} else if(p.value=="kliktri"){alert("serus");}}</script></body></html>
×
×
  • Create New...