Why this piece of code does not work?

Hello everyone, I am new to HTML and web design, and I'm doing a website. I created this piece of code so that when the user mouse over one of the links (jpg image) it will change the colors (I have the same image in different colors saved in the same folder).

< ! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > ""
" < html xmlns =" http://www.w3.org/1999/xhtml ">
< head >
< meta http-equiv = "Content-Type" content = text/html"; charset = utf-8 "/ >"
< title > < /title > XXXXXXXXXX
< / head >

< body bgcolor = "#000000" >
< table width = "1050" border = "0" align = "center" cellpadding = "0" cellspacing = "0" >
< b >
< td > < table width = "1050" border = "0" cellspacing = "0" cellpadding = "0" >
< b >
< td > < img src = "_images/XXXXbanner.jpg" width = "1050" height = "311" alt = "banner" / > < table > "
< /tr >
< /table >
< table width = "901" border = "0" align = "center" cellpadding = "0" cellspacing = "0" >
< b >
< td width = "150" > < a href = "index.html" Mm_swapimgrestore"onMouseOver =" MM_swapImage ('ButtonOne' ", ' _images/home_on.jpg', 1)" > "
< img name = "ButtonOne" border = "0" src = "_images/home.jpg" width = "150" height = alt "75" = "home" / > < /a > < table > "
< td width = "150" > < a href = "gallery.html" Mm_swapimgrestore"onMouseOver =" MM_swapImage ('ButtonTwo' ", ' _images/gallery_on.jpg', 1)" > "
< img name = "ButtonTwo" border = "0" src = "_images/gallery.jpg" width = "150" height = "75" alt = "Gallery" / > < /a > < table > "
< td width = "150" > < a href = "products.html" Mm_swapimgrestore"onMouseOver =" MM_swapImage ('ButtonThree' ", ' _images/product_on.jpg', 1)" > "
< img name = "ButtonThree" border = "0" src = "_images/product.jpg" width = "150" height = "75" alt = "products" / > < / a > < table > "
< td width = "150" > < a href = "store.html" Mm_swapimgrestore"onMouseOver =" MM_swapImage ('ButtonFour', ", ' _images/shop_on.jpg', 1)" > "
< img name = "ButtonFour" border = "0" src = "_images/shop.jpg" width = "150" height = "75" alt = "store" / > < /a > < table > "
< td width = "150" > < a href = "profile.html" Mm_swapimgrestore"onMouseOver =" MM_swapImage ('ButtonFive' ", ' _images/profile_on.jpg', 1)" > "
< img name = "ButtonFive" border = "0" src = "_images/profile.jpg" width = "150" height = "75" alt = "profile" / > < / a > < table > "
< td width = "151" > < a href = "contactus.html' Mm_swapimgrestore" onMouseOver ="MM_swapImage ('ButtonSix',", ' _images/contact_us_on.jpg', 1) ">"
< img name = "ButtonSix" border = "0" src = "_images/contact_us.jpg" width = "150" height = "75" alt = "contact" / > < /a > < table > "
< /tr >
< /table >
< table width = "1050" border = "0" cellspacing = "0" cellpadding = "0" >
< b >
< td > < table >
< td > < table >
< td > < table >
< /tr >
< /table >
< p > < / p >
< p > < /p > < table >
< /tr >
< /table >
< / body >
< / html >

images and the banner appear thin and I do not have mistpyed one of the names of places/file. Why the icon does not change the colors (show image 'on') when you pass the mouse over it? Please help thanks in advance.

* I use Adobe Dreamweaver CS4

The head of your page contains no MM_swapImgRestore() or MM_swapImage() functions that are called by your code.

Not sure how you have added the Beahviors yoru page.  If you have used the window of behaviours, DW should have added scripts to yoru page for you.  If you have added the code manually, then you will need to add the scripts manually.  But the easiest thing would be to simply add the behaviors of another link on the page, even a dummy, you can remove later.  This should get the scripts in the head for you.

--

E. Michael Brandt

www.divaHTML.com
www.divahtml.com/Products/scripts_dreamweaver_extensions.php
According to the standard scripts and the Dreamweaver Extensions

www.valleywebdesigns.com/vwd_Vdw.asp
JustSo PictureWindow
JustSo PhotoAlbum, and alia

--

Tags: Dreamweaver

Similar Questions

  • Why this simple script script does not work

    I'm pretty new to actionscript, I have learned from books, in fact I still am.

    The script that I'll try to work on my site, worked well in the teachings of the books.

    I don't think that my buttons are different, but why don't they work then.

    Can someone figure this.

    my script:

    Stop();

    whoweare.addEventListener (MouseEvent.MOUSE_UP, onNavigate);

    function onNavigate (evt:MouseEvent): Void {}
    gotoAndPlay ("contact");
    }

    whatwedo.addEventListener (MouseEvent.MOUSE_UP, onNavigate);

    function onNavigate (evt:MouseEvent): Void {}
    gotoAndPlay ("slideshow");
    }

    Error: the class or interface 'MouseEvent' could not be loaded.

    Help?

    Dirkhou,

    void not Void in AS3

  • Why my license code does not work on lightroom 6 for mac?

    Why my license code does not work on lightroom 6 for mac? My os x is "el capitan".

    Please try the steps to serialize Lightroom CC trial to activate like Lightroom 6 mentioned on: https://helpx.adobe.com/lightroom/kb/serialize-lightroom-cc-trial-to-activate-as-lightroom - 6.html

    You can also try: error "serial number is not valid for this product". Creative Suite

  • Why my registration code does not work?

    I just bought Adobe Photo Shop Elements for MAC and provided in the box registration code does not work.  Now, I can't find my serial number.  I got the purchase at Best Buy and they told me that since it was open, I call Adobe.  I was not able to find the phone numbers for support and all redirects me here.  I really want to use this product before the weekend and now I'm beyond frustrated.  I did research on research and nothing helped.

    Can you help me?

    AA I mentioned above, I tried everything recommended on Adobe's Support site. I was not able to find something that works with your link above.

  • jQuery code does not work in phonegap

    Someone gave me a code https://jsfiddle.net/adeneo/2uod274d/ jsfiddle

    It works well in jsfiddle, but when I put the code in my Xcode and amended to incorporate my code and run it in the Simulator, the code does not work at all (i.e., no data is stored in the local storage)

    I am building an app for iOS with phonegap. JS:

    <script type="text/javascript" src="cordova.js"></script>
      
    <script type="text/javascript" src="https://code.jquery.com/jquery-3.1.0.min.js"></script>
      
    <script type="text/javascript" src="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.js"></script>

      
    <script type="text/javascript">
      document.addEventListener("deviceready",onDeviceReady,false);

      function onDeviceReady() {

      document.getElementById("btnSave").addEventListener("click",saveData,false);
      document.getElementById("btnShow").addEventListener("click",showData,false);
    }

      function saveData(){
      var data = window.localStorage.getItem("date");

      var dates = data ? JSON.parse(data) : [];

      dates.push( new Date() );

      window.localStorage.setItem("date", JSON.stringify(dates));

      alert("Your data is stored");
      }

      function showData() {
      var data = JSON.parse(window.localStorage.getItem("date"));
      console.log(data);
      $('#res').html(JSON.stringify(data));
      $(this).html('Update result');
      }

    < /script >

    HTML:

    <button id="btnSave"> Save Data </button>

      
    <button id="btnShow"> Show Data </button>

    I don't know what is happening because the code works well in jsfiddle, but for some reason any just does not work in my phonegap.

    My version of phonegap 5.3.6 cordova version 5.3.3

    Post edited by: Fang Kerry, I added my complete code is easier to see the problem (if any)

    jQuery has nothing to do with this, as far as I can tell (so not sure why it is in your title). The problem is that the result of JSON.parse (data) is not an array, what you think it is, it's a chain. The chain respond well to 'push '. I get that when you use this code in jsfiddle he is somehow coming out as a table, but I think it must be because of something done jsfiddle. When I do the same commands in the console of my browser, I get a string, not a table, so your problem.

    Instead:

    function deserializeDates() {
        var data = window.localStorage.getItem("date");
        var dates = []; // worst case, we'll return an empty array.
        if (data) {
            try {
                dates = JSON.parse(data);
                 // handle the case that dates is a single item and not an array
                if (!(dates instanceof Array)) {
                    dates = [dates];
                }
            } catch (err) {
                 // the stored dates failed to parse for some reason; you might want to do something about it
                 console.log("Failed to parse " + data);
             }
        }
        return dates;
    }
    
    function serializeDates(dates) {
        window.localStorage.setItem("date", JSON.stringify(dates));
    }
    
    function saveData(){
         var dates = deserializeDates();
        dates.push( new Date() );
         serializeDates(dates);
        alert("Your data is stored");
    }
    
    function showData() {
         var dates = deserializeDates();
        console.log(dates);
        ...
      }
    
  • period overlaps the code does not work in apex page

    Hello

    Employees have a schedule with a start date and end. Calendar periods cannot overlap for the same employee.

    I have a function that returns the error of validation of text as follows:

    declare
    number of l_dummy;

    Start
    Select count (*)
    in l_dummy

    of fus_medewerker_roosters
    where mdr_code =: p61_mdr_code
    and <>id: p61_id
    and to_date(:p61_begin_periode,'DD-MON-YY') < = eind_periode
    and to_date(:p61_eind_periode,'DD-MOn-YY') > = begin_periode
    +;+

    If l_dummy > 0
    then
    Back to 'this employee already has a calendar in this period.';
    on the other
    Returns a null value.
    end if;

    end;

    But the code does not work. It records data of an employee even though the periods overlap.

    But the code works correctly in workshop:

    declare
    number of l_dummy;

    Start
    Select count (*)
    in l_dummy

    of fus_medewerker_roosters
    where mdr_code =: p61_mdr_code
    and <>id: p61_id
    and to_date(:p61_begin_periode,'DD-MON-YY') < = eind_periode
    and to_date(:p61_eind_periode,'DD-MOn-YY') > = begin_periode
    +;+

    If l_dummy > 0
    then
    DBMS_OUTPUT. Put_line ("this employee already has a calendar at this time."); end if;

    end;

    What goes wrong. Why it works very well in the Studio, but not in my page?

    Kind regards
    Diana

    Edited by: dianap on Sep 4, 2009 08:31

    Hi Diana,

    It comes with the following:

    to_date(begin_periode,'DD-MON-YYYY')
    

    and

    to_date(eind_periode,'DD-MON-YYYY')
    

    Here are the dates of the table itself, should not be converted to dates.

    Secondly and more important still, the list of selection of P11_MDR_ID does not return NULL, it returns "null %" - it is a string that should be converted to null.

    I have made a few changes for postings of these - please take a look and check that everything is working ok.

    Andy

  • Lightroom6 installation code does not work

    I'm tired, the installation code does not work.

    After 10 days, there is no way to be supported by Adobe, but they took my money.

    I'll block the payment and never again buy Lightroom.

    Mac or Windows and EXACTLY what version of the operating system?

    Recent Mac AND Windows operating systems have been known to cause problems "weird."

    Since this is an open forum, not Adobe support... you must contact Adobe personnel to help

    Chat/phone: Mon - Fri 05:00-19:00 (US Pacific Time)<=== note="" days="" and="">

    Don't forget to stay signed with your Adobe ID before accessing the link below

    Creative cloud support (all creative cloud customer service problems)

    http://helpx.Adobe.com/x-productkb/global/service-CCM.html

    -or by phone http://helpx.adobe.com/x-productkb/global/phone-support-orders.html

  • my serial code does not work how can I make it work

    my serial code does not work how can I make it work thank you

    Hello

    If you have a creative cloud subscription then you do not require a serial number to activate it, all you need to do is sign with your ID (Email used at purchase) Adobe in creative application Cloud to activate your membership. See,

    Connect and disconnect activate Cloud Creative applications

    Solve common problems of activation and deactivation of creative cloud.

    Activation and deactivation of troubleshooting

    Find solutions to activation errors that may occur during the launch of Adobe applications.

    I checked with your Adobe Id on the forums that there is no active subscriptions to this topic.

    If you have any other Adobe id try please activate the products with that.

    Kind regards

    Bani

  • The JavaScript code does not work

    Thank you for this beautiful prduct comfortable, but when I try it in any site uses javascript code does not work.

    Open this link: http://view.jquerymobile.com/1.3.1/demos/widgets/panels/ and try clicking the buttons (nothing will happen).

    Yes. To be clear, you must click on the device to see work.

  • Why my php export feature does not work in IE and not firefox?

    Why my php export feature does not work in IE and not Firefox? I wrote a web application that contains a SigmaGrid. Grid controls reload, add update delete, print and export to CSV all work in IE8. The export function does not work in Firefox.

    Have you tried to test your application on IE7/8/9 and FF10/Chrome/Opera?

  • Why the Polish support page does not work?

    Why the Polish support page does not work?

    http://PL.consumer.Toshiba.EU/PL/support/home/support_home?

    I think the error message is pretty clear:

    + Service temporarily unavailable +.
    + The server is temporarily unable to process your request due to downtime or maintenance capacity problems. Please try again later. +

  • A refurb Lenovo/IBM PC windows 7.0 SW, software code does not work for charging SW after a system restore

    A refurb Lenovo/IBM PC windows 7.0 SW, software code does not work for charging SW after a system restore. How can I get a new one

    Skip, enter the product key, and then complete the installation.

    Try the phone activation:

    How to activate Windows 7 manually (activate by phone)
     
    1) click Start and in the search for box type: slui.exe 4
     
    (2) press the ENTER"" key.
     
    (3) select your "country" in the list.
     
    (4) choose the option "activate phone".
     
    (5) stay on the phone (do not select/press all options) and wait for a person to help you with the activation.
     
    (6) explain your problem clearly to the support person.
     
    http://support.Microsoft.com/kb/950929/en-us

  • Reinstall Windows 7 and now the activation code does not work

    I upgraded my PC with an AM2 chip to an i5.  I had to reinstall windows and now my activation code does not work.   It's like 2-3 years, I forgot when I built the computer.  It installed on my other windows 7 install and created the windows.old folder.  How can I get reactivated?  I used the same code since I built my computer.

    Thank you

    Have you tried to restart by phone?

    How to activate Windows 7 manually (activate by phone)
     
    1) click Start and in the search for box type: slui.exe 4
     
    (2) press the ENTER"" key.
     
    (3) select your "country" in the list.
     
    (4) choose the option "activate phone".
     
    (5) stay on the phone (do not select/press all options) and wait for a person to help you with the activation.
     
    (6) explain your problem clearly to the support person.
     
    http://support.Microsoft.com/kb/950929/en-us

  • I have Adobe Creative Suite 5 Master Collection. Activation code does not work?

    I have Adobe Creative Suite 5 Master Collection. Activation code does not work when I install it on my Macbook. It installed properly on my Windows PC, however.

    I thought the serial numbers for specific version CS5... Mac - GOLD - Windows, not both

    You sure have a serial number which is good for both?

  • Does anyone know any reason why my photoshop 3D CC does not work. Cannot highlight the functions, as are gray. I Lion 10.7.5 but all other functions seem to work. ?

    Does anyone know any reason why my photoshop 3D CC does not work. Cannot highlight the functions, as are gray. I Lion 10.7.5 but all other functions seem to work. ?

    upgrade your operating system, Photoshop system requirements

Maybe you are looking for