www.webdeveloper.com

Search:

Type: Posts; User: nazzy

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    743

    try switch statement function switchImage(id)...

    try switch statement

    function switchImage(id) {
    var men = document.getElementById(id);
    var menclass = men.className;

    switch(menclass) {
    case "menu1":
    men.className = "menu1b";
    ...
  2. Replies
    5
    Views
    743

    if(menClass = 'menu1') // this returns true...

    if(menClass = 'menu1') // this returns true always, meaning menClass = 'menu1' no matter what the value of your origininal men class name.
    try:
    if(menClass == 'menu1') {
    do your code...
  3. Replies
    2
    Views
    500

    placeholder? I.E. only reads...

    placeholder?
    I.E. only reads document.getElementById, document.getElementsByTagName and many others involving xml node selection, try to put an id to your anchor element, if you can't try this
    ...
  4. Replies
    3
    Views
    978

    i did not meant for you to copy the code i gave,...

    i did not meant for you to copy the code i gave, your supposed to include the data on the code.

    your supposed to change the following:

    case "option1_menu": to the actual value of your option...
  5. Replies
    3
    Views
    978

    you can achieve that by adding and id to

    you can achieve that by adding and id to <p id='theid'>
    <input type="button" onClick="toggleMe('toggleHolmes');" value="Click to toggle"/>
    </p>
    , that is if you only want to replace this to a new...
  6. Thread: Ques

    by nazzy
    Replies
    1
    Views
    352

    browsers adopt the change immediately except for...

    browsers adopt the change immediately except for I.E. explorer loads the document first before executing the js code. browsers read the entire js code written in that particular page before opening a...
  7. it works together with other functions to make...

    it works together with other functions to make any object draggable. that code only gets the the x and y mouse position of any object
  8. firefox and other browsers uses e.pageX and...

    firefox and other browsers uses e.pageX and e.pageY or event.pageX for x positon and event.pageY for y position

    function onMove(event)
    {
    event = event || window.event;

    if(event.pageX ||...
  9. Replies
    1
    Views
    2,208

    You can do that using AJAX, that is if the...

    You can do that using AJAX, that is if the content you want to display reside on your database or you want to load a page on that particular div but if not, you can write the content of your second...
  10. Replies
    2
    Views
    1,238

    as far as i know, javascript doesn't have onpaste...

    as far as i know, javascript doesn't have onpaste event or onPaste event
  11. Replies
    1
    Views
    770

    DAYNAME() requires parameter it can be now() //...

    DAYNAME() requires parameter it can be now() // output current day name or your column date name i.e DAYNAME(date) // date is your date's column name.
  12. Replies
    2
    Views
    425

    function function_name(var1, var2) // these are...

    function function_name(var1, var2) // these are not variables but rather parameters

    variables are declared like:
    var name_of_var; or var name_or_var = 'var_value';
  13. Thread: Just javascript

    by nazzy
    Replies
    1
    Views
    700

    try this out: function changeLink(sender) { ...

    try this out:
    function changeLink(sender) {
    var thelink = document.getElementById('the id of your link element');
    switch(sender.value) {
    case "button1_value":
    ...
  14. Replies
    2
    Views
    889

    your mouse out do trigger inside your div element...

    your mouse out do trigger inside your div element because the browser reads the content element and not your div element if your div element contains other elements. to rectify modify your function...
  15. Replies
    5
    Views
    1,847

    sorry for my late response, i believe you had not...

    sorry for my late response, i believe you had not copied the entire code
    function changeColor(els) {
    els.style.color = "your_color";
    //add another function to change back to its original color...
  16. Thread: Html error help

    by nazzy
    Replies
    5
    Views
    960

    check the width of your element(s), modify each...

    check the width of your element(s), modify each according the exact size of your element tag. your width(s) size is too big from your parent element.
  17. Replies
    5
    Views
    1,847

    Info: Adding an id is a good move but adding...

    Info: Adding an id is a good move but adding <span> on <a> element isn't. Adding an id or not, you can dynamically change the text color directly to your <a> element.
    steps:
    1.) create a function...
Results 1 to 17 of 17
HTML5 Development Center



Recent Articles