View Single Post
Old 05-06-2012, 12:19 PM   #5
silver18
THE NOOB
silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.
 
silver18's Avatar
 
Posts: 701
Karma: 1545649
Join Date: Jan 2012
Location: Italy
Device: Kindle Touch 5.3.2
Here's how I solved the problem...Not elegant at all, but it works..
(actually a part of my ImageGallery WAF)

Code:
<form>
<select id="jumpToBook" name="selectedBookmark" onchange="jumpToBookmark(this.form.selectedBookmark);" style="position: fixed; left:20px; top:113px; z-index: 2;">
<option style="display:none;" value="" disabled="disabled">No bookmarks available!</option>
</select>
</form>
and here's the relevant part of the jumpToBookmark function:
Code:
var selpage;
var wheretobook;

function jumpToBookmark (wheretobook) {
selpage = wheretobook.options[wheretobook.selectedIndex].value;
}

I found that 5.1.0 firmware has lots of problems with select menus' style: so avoid fixed width and be careful with z-index (selects like to stay on top!).
silver18 is offline   Reply With Quote