Scotty wrote:
I'm trying to do something funky... Check out this example
http://www.netflix.com/BrowseSelection
If you mouseover a movie, you will see a nice looking popup with info.
I would like to do the same thing only with rss feeds on a text link.
(not sure if this is possible)
I pulled down every .js, .html, .css from their site and I am trying to
figure out what they are doing... I am a novice at javascript, but I
can hack and slash pretty well.
Or maybe you are not nearly as good as you think. It took me only _seconds_
to find out that they use the `onmouseover' event handler to call
dB(event, this)
(using Firefox's "View Selection Source") and find (pretty-printed)
function dB(evt,link)
{
BobManager.dB(evt,link);
}
and (pretty printed)
dB: function(evt, _177, _178)
{
if (!window.d_bobMS || d_bobMS==-1
|| this.readyState==BobManager.STATE_ASLEEP)
{
return;
}
if (this.hideBobTimer
&& this.triggerElement
&& this.triggerElement == _177)
{
clearTimeout(this.hideBobTimer);
this.hideBobTimer = null;
return;
}
this.mouseCoord = getMouseCoordinates(evt);
this.detach();
this.triggerElement = _177;
this.href = _177.href || _177.parentNode.href;
if (arguments.length == 3)
{
this.boxshotState = _178;
}
else
{
this.boxshotState = BobManager.BOXSHOT_STATE_DEFAULT;
}
this.attach();
var _179 = this.getMovieID();
var _180 = this;
var _181 = function()
{
_180.display(_179);
};
this.showBobTimer = setTimeout(_181, d_bobMS);
}
in <URL:http://www.netflix.com/layout/jscript/domutil.js?v=2006030900>.
The rest of finding out how this works is left as an exercise to the reader.
PointedEars