Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 10th, 2012  |  syntax: None  |  size: 1.19 KB  |  hits: 5  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. javascript not execute at live
  2. function mouseOver1()
  3. {
  4.     var category1 = document
  5.          .getElementById('ctl00_ContentPlaceHolder1_lblItemID')
  6.          .innerHTML + '_1.jpg';
  7.  
  8.     document
  9.       .getElementById('<%= iPhotoMain.ClientID.Replace("$","_") %>')
  10.       .src = 'photos/product/' + category1;
  11. }
  12.  
  13. <img id ="photo1"
  14.      src ="photos/product/noImage.gif"
  15.      onmouseover="mouseOver1();"  
  16.      class="thumbpic"
  17.      runat ="server" />
  18.        
  19. function mouseOver1(){
  20.   var category1 = document
  21.     .getElementById('<%=lblItemID.ClientID%>')
  22.     .innerHTML + '_1.jpg';
  23.  
  24.   document
  25.     .getElementById('<%=photo1.ClientID%>')
  26.     .src = 'photos/product/' + category1;
  27. }
  28.        
  29. var category1 = "";
  30.  
  31.     function mouseOver1(callback)
  32.     {
  33.         category1 = document
  34.              .getElementById('ctl00_ContentPlaceHolder1_lblItemID')
  35.              .innerHTML + '_1.jpg';
  36.  
  37.         callback();
  38.     }
  39.  
  40.     function mouseOver2()
  41.     {
  42.        document
  43.           .getElementById('<%= iPhotoMain.ClientID.Replace("$","_") %>')
  44.           .src = 'photos/product/' + category1;
  45.     }
  46.  
  47. <img id ="photo1" src ="photos/product/noImage.gif" onmouseover="mouseOver1(mouseOver2);" class="thumbpic"  runat ="server" />