HTML jquery vs. doing it manually -
i need load images user selects.
i hoping load them using div, how it?
jquery can , in javascript, believe.
so how can write function manages div completion or complicated?
just looking clarity @ stage.
thanks.
edit: have drop down listing , user selects 1 option need load bunch of images. cache images , show them.
i can show site advertising.
<select id="videodromemenu" onchange="dodestination('videodromemenu');"> <option>choose destination...</option> <option>pawns in game</option> <option>akira</option> <option>apocalypse now</option> <option>blade runner</option> <option>crouching tiger hidden dragon</option> <option>dr. strangelove</option> <option>enemy @ gates</option> <option>nikita</option> <option>out of africa</option> <option>pulp fiction</option> <option>scarface</option> <option>silence of lambs</option>> <option>the abyss</option> <option>the big blue</option> <option>the thirteenth floor</option> </select> here code wont think.
<select id="imagelist"> <option value="purple.jpg">purple.jpg</option> <option value="red.jpg">red.jpg</option> <option value="blue.jpg">blue.jpg</option> </select> <div id="imagedisplay"></div> <script type="text/javascript"> $( '#imagelist' ).change( function() { $( '#imagedisplay' ).empty() // remove what's in div $( '#imagedisplay' ).html( '<img src="' + $( ).val() + '" />' ); }); </script> this need tweaking... paths images. it's -think- you're looking for.
Comments
Post a Comment