Ciao TrueLies,
nelle value delle option carico i dati dalla tabella MySQL, in realtà devo caricare più valori che poi vado ad esplodere prima della query di INSERT.
ti faccio un'altra domanda, non è possibile applicare un comando onmouseover in una option e fare visualizzare un tooltip ?
Ricordo bene di avere visto una select cosi, in sostanza aprendo la tendina scorrendo sulle option si vedeva la relativa immagine sulla destra.
Hai qualche idea ? Ovviamente senza impegnare il campo value
Ho trovato e utilizzo, questo fantastico script per i miei tooltip, non è che si può aplicare anche alle option ?
Scusa la mia ignoranza js /ajax
codice:/* * Url preview script * powered by jQuery (http://www.jquery.com) * * written by Alen Grakalic (http://cssglobe.com) * * for more info visit http://cssglobe.com/post/1695/easies...w-using-jquery * */ this.screenshotPreview = function(){ /* CONFIG */ xOffset = 10; yOffset = -230; // these 2 variable determine popup's distance from the cursor // you might want to adjust to get the right result /* END CONFIG */ $("a.screenshot").hover(function(e){ this.t = this.title; this.title = ""; var c = (this.t != "") ? " " + this.t : ""; $("body").append("<p id='screenshot'>[img]"+ this.rel +"[/img]"+ c +"</p>"); $("#screenshot") .css("top",(e.pageY - xOffset) + "px") .css("left",(e.pageX + yOffset) + "px") .fadeIn("fast"); }, function(){ this.title = this.t; $("#screenshot").remove(); }); $("a.screenshot").mousemove(function(e){ $("#screenshot") .css("top",(e.pageY - xOffset) + "px") .css("left",(e.pageX + yOffset) + "px"); }); }; // starting the script on page load $(document).ready(function(){ screenshotPreview(); });

Rispondi quotando