Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to Make a Javascript Image Enlarge on Rollover
    primarykey
    data
    text
    <p>I have the page here at <a href="http://thetotempole.ca/javas2.html" rel="nofollow">www.thetotempole.ca/javas2.html/</a> and basically I have a table with images and when the user rolls over one of the images I want it to enlarge and then return to normal on roll-out. Is there anyway this can be done? Here is my javascript/HTML code: </p> <pre><code>&lt;!DOCTYPE html&gt; &lt;head&gt; &lt;script&gt; var today = new Date(); var daynames = new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"); var monthnames = new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"); var prodnames = new Array("Apple","Dell","IBM","Toshiba","Atari"); var imgArray = new Array(); imgArray[0] = new Image(); imgArray[0].src = 'images/apple.jpg'; imgArray[1] = new Image(); imgArray[1].src = 'images/dell.jpg'; imgArray[2] = new Image(); imgArray[2].src = 'images/ibm.jpg'; imgArray[3] = new Image(); imgArray[3].src = 'images/toshiba.jpg'; imgArray[4] = new Image(); imgArray[4].src = 'images/atari.jpg'; imgArray[5] = new Image(); imgArray[5].src = 'images/commodore.jpg'; prodnames.push("Commodore"); var proddescs = new Array(); proddescs[0] = "It might be fruit, or it might be an iPhone"; proddescs[1] = "Buy this one online at dell.com"; proddescs[2] = "If you want a mainframe they still have some"; proddescs[3] = "Get a discount through SAIT (maybe)"; proddescs[4] = "Try a classic gaming machine"; proddescs[5] = "64k should be enough for anyone"; //alert(proddescs); &lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;table border="1"&gt; &lt;tr&gt; &lt;th&gt;Product Name&lt;/th&gt; &lt;th&gt;Product Description&lt;/th&gt; &lt;th&gt;Product Images&lt;/th&gt; &lt;/tr&gt; &lt;script&gt; for (var i=0; i&lt;prodnames.length; i++) { document.write("&lt;tr&gt;"); document.write("&lt;td&gt;" + prodnames[i] + "&lt;/td&gt;"); document.write("&lt;td&gt;" + proddescs[i] + "&lt;/td&gt;"); document.write("&lt;td&gt;" + imgArray[i] + "&lt;/td&gt;"); document.write("&lt;/tr&gt;"); } &lt;/script&gt; &lt;/table&gt; &lt;p&gt; &lt;script&gt; //Tuesday Nov. 5, 2013 var dayofweek = daynames[today.getDay()]; //alert(dayofweek); var month = monthnames[today.getMonth()]; var dateofmonth = today.getDate(); var year = today.getFullYear(); alert(dayofweek + " " + month + ". " + dateofmonth + ", " + year); document.write(dayofweek + " " + month + ". " + dateofmonth + ", " + year); &lt;/script&gt; &lt;/p&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>Thank you!</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload