Hello, I need some help and was curious as anyone on Digital Point has the answer... I'd like to make a floating Google searchbox. Most of the tutorials online I found taught you how to make a floating "menu". Floating as in it will appear all the time. If you don't know what I'm talking about... Here's a pic: thanks in advance!
Here's some code for a Floating iFrame, that'll work. You'll have to use target="_blank" so the results open in a new window. http://www.dynamicdrive.com/dynamicindex17/floatiframe.htm
Does Firefox support this script? It works fine in IE though, thanks. Edit: Hmm, I did a little research and it seems that Firefox does not support iFrames. Is there another solution without using iFrames?
Try this from the same site: http://www.dynamicdrive.com/dynamicindex17/floatbar.htm Claims to support IE, FF and Opera. May not be exactly what you want, but perhaps you can play around with it? Hope that helps! ian
You can do this with a <div> and some CSS: set the 'position' property to 'absolute' and set the 'top' and 'left' fields to the place you want it... then use the <body onscroll=...> event to update the position.
Couldn't use just place it in a DIV and ue CSS to position it within the window frame. Oh... as Richard suggested ^ That'd be the best solution and wouldn't require loads of JS to achieve it.