Category Archives: Javascript css html

JavaScript examples

2,585 views

Select Get Selected Item JavaScript Html Example

<select id="idSelNick"> <option value="neuveden">Neuveden</option> <option value="hlavni-mesto-praha">Hlavní město Praha</option> <option value="stredocesky">Středočeský</option> <option value="jihocesky">Jihočeský</option> <option value="plzensky">Plzeňský</option> </select>   // in script var mysel = document.getElementById(’idSelNick’); var seltxt = mysel.options[mysel.selectedIndex].text; var selval = mysel.options[mysel.selectedIndex].value;

Posted in Javascript css html | Tagged | Comments Off on Select Get Selected Item JavaScript Html Example
3,356 views

Timer JavaScript Example Code

Best of timer in JavaScript – preciseness in milisecond // global variables var _startDate = null; var _stopDate = null; var go = null; // timing   function startFC(){ _startDate = new Date(); if(go==null)timingFC(); }   timingFC(){ if(go==null){ _startDate = … Continue reading

Posted in Javascript css html | Tagged , | Comments Off on Timer JavaScript Example Code