<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Discussion on MySpace Image Rollover | Userscripts.org</title>
    <link>http://userscripts.org/scripts/show/8471</link>
    <description>Recent comments on userscript: MySpace Image Rollover</description>
    <language>en-us</language>
    <ttl>60</ttl>
    <item>
      <title>Archived Comments, replied by Kory @ Tue, 29 Jul 2008 01:05:18 -0500</title>
      <description>&lt;p&gt;Anyone know how to enable this script on the friend updates?  For some reason it doesn't work for me... anyone else having this problem?&lt;/p&gt;</description>
      <pubDate>Tue, 29 Jul 2008 01:05:18 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:17466:76609</guid>
      <author>Kory</author>
      <link>http://userscripts.org/topics/17466</link>
    </item>
    <item>
      <title>Archived Comments, replied by RIPBAP1999 @ Mon, 21 Jan 2008 20:21:53 -0600</title>
      <description>&lt;p&gt;Hey, I'm kinda new to this scipts thing, but I am catchin on.&lt;/p&gt;

&lt;p&gt;Is there anyway you could make the image rollover for all pictures on myspace? Because on mine it only does certain pics.&lt;/p&gt;

&lt;p&gt;I use the Home Auto-Update script and the Home skin switchup script and it wont show the picture when I rollover my friends pics on the Bulletins screen and the online friends screen it won't let me view them.&lt;/p&gt;

&lt;p&gt;Is there a way you can make that possible?&lt;/p&gt;</description>
      <pubDate>Mon, 21 Jan 2008 20:21:53 -0600</pubDate>
      <guid isPermaLink="false">userscripts.org:17466:76610</guid>
      <author>RIPBAP1999</author>
      <link>http://userscripts.org/topics/17466</link>
    </item>
    <item>
      <title>Archived Comments, replied by Filthy Jesus @ Wed, 05 Dec 2007 21:14:52 -0600</title>
      <description>&lt;p&gt;that would be incredible if they could.... But I don't think so. maybe put a delay to run that part of the script after the unpaged photos script runs.&lt;/p&gt;</description>
      <pubDate>Wed, 05 Dec 2007 21:14:52 -0600</pubDate>
      <guid isPermaLink="false">userscripts.org:17466:76611</guid>
      <author>Filthy Jesus</author>
      <link>http://userscripts.org/topics/17466</link>
    </item>
    <item>
      <title>Archived Comments, replied by andyfavors @ Wed, 24 Oct 2007 06:55:00 -0500</title>
      <description>&lt;p&gt;It works great, but if I use it along with Myspace - Unpaged Photos..... &lt;a href=&quot;http://userscripts.org/scripts/show/13030&quot;&gt;http://userscripts.org/scripts/show/13030&lt;/a&gt; it will only work on the first page of images.  Anyway to fix this?&lt;/p&gt;</description>
      <pubDate>Wed, 24 Oct 2007 06:55:00 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:17466:76612</guid>
      <author>andyfavors</author>
      <link>http://userscripts.org/topics/17466</link>
    </item>
    <item>
      <title>Archived Comments, replied by Filthy Jesus @ Fri, 28 Sep 2007 02:37:38 -0500</title>
      <description>&lt;p&gt;update..... it's not working...&lt;/p&gt;</description>
      <pubDate>Fri, 28 Sep 2007 02:37:38 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:17466:76613</guid>
      <author>Filthy Jesus</author>
      <link>http://userscripts.org/topics/17466</link>
    </item>
    <item>
      <title>Archived Comments, replied by Krayzy @ Fri, 03 Aug 2007 12:31:47 -0500</title>
      <description>&lt;p&gt;Great script ...thanks :D&lt;/p&gt;</description>
      <pubDate>Fri, 03 Aug 2007 12:31:47 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:17466:76614</guid>
      <author>Krayzy</author>
      <link>http://userscripts.org/topics/17466</link>
    </item>
    <item>
      <title>Archived Comments, replied by NoValidTitle @ Tue, 31 Jul 2007 11:51:50 -0500</title>
      <description>&lt;p&gt;I love this script and I've been using it for a long time. Is there any chance of getting a version that works on flickr?&lt;/p&gt;</description>
      <pubDate>Tue, 31 Jul 2007 11:51:50 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:17466:76615</guid>
      <author>NoValidTitle</author>
      <link>http://userscripts.org/topics/17466</link>
    </item>
    <item>
      <title>Archived Comments, replied by samlyons @ Wed, 18 Jul 2007 00:17:31 -0500</title>
      <description>&lt;p&gt;Great work!!! High five!! lol thanks.&lt;/p&gt;</description>
      <pubDate>Wed, 18 Jul 2007 00:17:31 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:17466:76616</guid>
      <author>samlyons</author>
      <link>http://userscripts.org/topics/17466</link>
    </item>
    <item>
      <title>Archived Comments, replied by jumper4000 @ Thu, 28 Jun 2007 18:56:25 -0500</title>
      <description>&lt;p&gt;Great script. thanks Mark, and thank you Graig for the modification to move the image to the right if it's covered by mouse. here's the full script including Craig's changes in case any of you need it:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;
&lt;br /&gt;// ==UserScript==
&lt;br /&gt;// @name           MySpace Image Rollover
&lt;br /&gt;// @namespace      http://www.lessel.us/
&lt;br /&gt;// @include        http://*.myspace.com/*
&lt;br /&gt;// ==/UserScript==
&lt;br /&gt;// By: Mark Lessel
&lt;br /&gt;// Email: mark@lessel.us
&lt;br /&gt;// Based on a script from Justin Rosenthal&lt;/p&gt;

&lt;p&gt;var allImages, thisImage;
&lt;br /&gt;var globalTimer;&lt;/p&gt;

&lt;p&gt;allImages = document.evaluate(
&lt;br /&gt;	'//img[contains(@src, &quot;ac-images&quot;)]',
&lt;br /&gt;	document,
&lt;br /&gt;	null,
&lt;br /&gt;	XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,
&lt;br /&gt;	null);&lt;/p&gt;

&lt;p&gt;// Holds paths of all the enlarged images
&lt;br /&gt;imgArray = new Array( allImages.snapshotLength * 2);&lt;/p&gt;

&lt;p&gt;i=0;
&lt;br /&gt;while (i &amp;lt; allImages.snapshotLength) {&lt;/p&gt;

&lt;p&gt;	thisImage = allImages.snapshotItem(i);&lt;/p&gt;

&lt;p&gt;	// Example of photo src     --&gt;     03/31/2006
&lt;br /&gt;	// http://photos-420.facebook.com/images/profile/628/72/t9999999_99999.jpg
&lt;br /&gt;	// want to change the 't' to an 'n' for large image
&lt;br /&gt;	var src = thisImage.src;
&lt;br /&gt;	//var path = src.substring( 0, src.lastIndexOf('/') + 1 );
&lt;br /&gt;	//var fileName = 'n' + src.substring( src.lastIndexOf('/') + 2, src.length);&lt;/p&gt;

&lt;p&gt;	var fileName = src.replace(&quot;_m.jpg&quot;,&quot;_l.jpg&quot;);
&lt;br /&gt;	fileName = fileName.replace(&quot;/m_&quot;,&quot;/l_&quot;);
&lt;br /&gt;	fileName = fileName.replace(&quot;_s.jpg&quot;,&quot;_l.jpg&quot;);
&lt;br /&gt;	fileName = fileName.replace(&quot;/s_&quot;,&quot;/l_&quot;);&lt;/p&gt;

&lt;p&gt;	thisImage.alt = i;
&lt;br /&gt;	imgArray[i] = fileName;
&lt;br /&gt;	imgArray[i + allImages.snapshotLength] = src;&lt;/p&gt;

&lt;p&gt;	var newDiv = document.createElement('div');
&lt;br /&gt;	var html = &quot;&lt;div&gt;&lt;img src=&quot;\\&quot;&gt;&lt;/div&gt;&quot;;
&lt;br /&gt;	newDiv.innerHTML = html;
&lt;br /&gt;	document.body.appendChild(newDiv);&lt;/p&gt;

&lt;p&gt;	thisImage.addEventListener(
&lt;br /&gt;		'mouseover',
&lt;br /&gt;		function(event) {
&lt;br /&gt;			var x = event.pageX;
&lt;br /&gt;			var y = event.pageY;
&lt;br /&gt;			var z = 't' + this.alt;
&lt;br /&gt;			var screeny = event.screenY; 
&lt;br /&gt;			globalTimer = window.setTimeout(
&lt;br /&gt;			function() { popUp(x,y,screeny,z); }, 500);
&lt;br /&gt;		},
&lt;br /&gt;		true);&lt;/p&gt;

&lt;p&gt;	thisImage.addEventListener(
&lt;br /&gt;		'mouseout',
&lt;br /&gt;		function(event) {
&lt;br /&gt;			window.clearTimeout(globalTimer);
&lt;br /&gt;			document.getElementById('t' + this.alt).style.visibility = &quot;hidden&quot;;
&lt;br /&gt;		},
&lt;br /&gt;		true);&lt;/p&gt;

&lt;p&gt;	i++;
&lt;br /&gt;}&lt;/p&gt;

&lt;p&gt;function addGlobalStyle(css) {
&lt;br /&gt;    var head, style;
&lt;br /&gt;    head = document.getElementsByTagName('head')[0];
&lt;br /&gt;    if (!head) { return; }
&lt;br /&gt;    style = document.createElement('style');
&lt;br /&gt;    style.type = 'text/css';
&lt;br /&gt;    style.innerHTML = css;
&lt;br /&gt;    head.appendChild(style);
&lt;br /&gt;}&lt;/p&gt;

&lt;p&gt;addGlobalStyle('.tip {font:10px/12px Arial,Helvetica,sans-serif;border:0;padding:3px 3px 3px 3px;visibility:hidden;position:absolute;z-index:100;color:#333333;top:20px;left:90px;background-color:#3B5998;}');
&lt;br /&gt;addGlobalStyle('.tip img {border:2px solid white;}');&lt;/p&gt;

&lt;p&gt;function popUp(pgX,pgY,screeny,oi){
&lt;br /&gt;	var winWidth = window.innerWidth;
&lt;br /&gt;	var winHeight = window.innerHeight;
&lt;br /&gt;	objStyle = document.getElementById(oi).style;
&lt;br /&gt;	obj = document.getElementById(oi);
&lt;br /&gt;	objWidth = obj.offsetWidth;
&lt;br /&gt;	if (objStyle.visibility == &quot;visible&quot;) {
&lt;br /&gt;		objStyle.visibility = &quot;hidden&quot;;
&lt;br /&gt;	}
&lt;br /&gt;	else {
&lt;br /&gt;		//if ( (pgY + obj.offsetHeight) &gt; winHeight )
&lt;br /&gt;		//	var top = pgY - obj.offsetHeight - 20;
&lt;br /&gt;		//else
&lt;br /&gt;		var top;
&lt;br /&gt;		var left;&lt;/p&gt;

&lt;p&gt;		if ( ( pgX - 40 ) &amp;lt; obj.offsetWidth )
&lt;br /&gt;		{
&lt;br /&gt;		if ( ( screeny - 200 ) &amp;lt; obj.offsetHeight )
&lt;br /&gt;		left = (winWidth - obj.offsetWidth - 20)
&lt;br /&gt;		else
&lt;br /&gt;		left = 10;
&lt;br /&gt;		}
&lt;br /&gt;		else
&lt;br /&gt;		left = 10;&lt;/p&gt;

&lt;p&gt;		top = pgY - screeny + 170;&lt;/p&gt;

&lt;p&gt;		objStyle.left = left;
&lt;br /&gt;		objStyle.top = top;
&lt;br /&gt;		objStyle.visibility = &quot;visible&quot;;
&lt;br /&gt;	}&lt;/p&gt;

&lt;p&gt;}
&lt;br /&gt;&lt;/code&gt;&lt;/p&gt;</description>
      <pubDate>Thu, 28 Jun 2007 18:56:25 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:17466:76617</guid>
      <author>jumper4000</author>
      <link>http://userscripts.org/topics/17466</link>
    </item>
    <item>
      <title>Archived Comments, replied by Filthy Jesus @ Tue, 22 May 2007 03:01:59 -0500</title>
      <description>&lt;p&gt;Perfect :-D&lt;/p&gt;</description>
      <pubDate>Tue, 22 May 2007 03:01:59 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:17466:76618</guid>
      <author>Filthy Jesus</author>
      <link>http://userscripts.org/topics/17466</link>
    </item>
    <item>
      <title>Archived Comments, replied by Mark Lessel @ Sat, 05 May 2007 19:28:55 -0500</title>
      <description>&lt;p&gt;I think that happens when you roll over an image that is then covered up by the large version.  I'll see if I can find a fix.&lt;/p&gt;</description>
      <pubDate>Sat, 05 May 2007 19:28:55 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:17466:76619</guid>
      <author>Mark Lessel</author>
      <link>http://userscripts.org/topics/17466</link>
    </item>
    <item>
      <title>Archived Comments, replied by surtin @ Sat, 05 May 2007 15:28:58 -0500</title>
      <description>&lt;p&gt;I noticed that with the new script, that sometimes images just tend to flicker. I think it happens when click on a image, but I'm not sure yet.&lt;/p&gt;</description>
      <pubDate>Sat, 05 May 2007 15:28:58 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:17466:76620</guid>
      <author>surtin</author>
      <link>http://userscripts.org/topics/17466</link>
    </item>
    <item>
      <title>Archived Comments, replied by Sarreq Teryx @ Fri, 04 May 2007 00:10:47 -0500</title>
      <description>&lt;p&gt;I like this script alot, but I prefer the older method of the image popping right above or below the cursor, and to fix the problem with it going off the screen (up or down anyway) I changed the IMG's CSS to:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;addGlobalStyle('.tip img {border:2px solid white; max-height: 600px; width: auto;}');&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;The only thing I'd like to suggest (this applies to the older version though) is to figure out a way to keep it from going off the screen to the sides&lt;/p&gt;</description>
      <pubDate>Fri, 04 May 2007 00:10:47 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:17466:76621</guid>
      <author>Sarreq Teryx</author>
      <link>http://userscripts.org/topics/17466</link>
    </item>
    <item>
      <title>Archived Comments, replied by Mark Lessel @ Thu, 03 May 2007 01:35:43 -0500</title>
      <description>&lt;p&gt;Thanks for the suggestions!  Check out the new version of the script and let me know what you think.&lt;/p&gt;</description>
      <pubDate>Thu, 03 May 2007 01:35:43 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:17466:76622</guid>
      <author>Mark Lessel</author>
      <link>http://userscripts.org/topics/17466</link>
    </item>
    <item>
      <title>Archived Comments, replied by rahi @ Tue, 01 May 2007 02:04:31 -0500</title>
      <description>&lt;p&gt;Hey i really like this script, however the images show up off the scrfeen, wondering if its gonna be updated to work correctly like the one on facebook&lt;/p&gt;</description>
      <pubDate>Tue, 01 May 2007 02:04:31 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:17466:76623</guid>
      <author>rahi</author>
      <link>http://userscripts.org/topics/17466</link>
    </item>
    <item>
      <title>Archived Comments, replied by surtin @ Mon, 23 Apr 2007 22:25:27 -0500</title>
      <description>&lt;p&gt;I'd like to get the results you got Graig, but your info was way over my head considering I don't know enough about JS.&lt;/p&gt;</description>
      <pubDate>Mon, 23 Apr 2007 22:25:27 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:17466:76624</guid>
      <author>surtin</author>
      <link>http://userscripts.org/topics/17466</link>
    </item>
    <item>
      <title>Archived Comments, replied by Graig @ Sun, 22 Apr 2007 14:15:29 -0500</title>
      <description>&lt;p&gt;I modified the script so that it always loads the image in the upper left-hand corner of the screen unless that would put it under the mouse-cursor. In that case it loads in the upper right (if the image is big enough this could still put it under the cursor).&lt;/p&gt;

&lt;p&gt;First, I made a variable called screeny and passed it to the popup function:&lt;/p&gt;

&lt;p&gt;var screeny = event.screenY;
&lt;br /&gt;globalTimer = window.setTimeout(
&lt;br /&gt;function() { popUp(x,y,screeny,z); },		500);&lt;/p&gt;

&lt;p&gt;Then the declaration of popUp needs the screeny addition:
&lt;br /&gt;function popUp(pgX,pgY,screeny,oi)&lt;/p&gt;

&lt;p&gt;Last, I modified the popup function so that top and left are calculated like this:&lt;/p&gt;

&lt;p&gt;var top;
&lt;br /&gt;var left;&lt;/p&gt;

&lt;p&gt;if ( ( pgX - 40 ) &amp;lt; obj.offsetWidth )
&lt;br /&gt;{
&lt;br /&gt;  if ( ( screeny - 200 ) &amp;lt; obj.offsetHeight )
&lt;br /&gt;    left = (winWidth - obj.offsetWidth - 20)
&lt;br /&gt;  else
&lt;br /&gt;    left = 10;
&lt;br /&gt;}
&lt;br /&gt;else
&lt;br /&gt;  left = 10;&lt;/p&gt;

&lt;p&gt;top = pgY - screeny + 170;&lt;/p&gt;

&lt;p&gt;The 170 in the top calculation puts it 170 pixels from the top of the screen. Depending on how many toolbars you have in Firefox, you may need to adjust this value.&lt;/p&gt;

&lt;p&gt;Enjoy!&lt;/p&gt;</description>
      <pubDate>Sun, 22 Apr 2007 14:15:29 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:17466:76625</guid>
      <author>Graig</author>
      <link>http://userscripts.org/topics/17466</link>
    </item>
    <item>
      <title>Archived Comments, replied by TMcGowa @ Wed, 18 Apr 2007 14:33:15 -0500</title>
      <description>&lt;p&gt;This script is great, but it could use one change. Since a lot of myspace images are big and can run off the screen, is it possible to set a screen position where all images will appear, rather than popping up next to the mouse? (For instance, as it does in the &quot;inYOfac3Book&quot; script.)&lt;/p&gt;</description>
      <pubDate>Wed, 18 Apr 2007 14:33:15 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:17466:76626</guid>
      <author>TMcGowa</author>
      <link>http://userscripts.org/topics/17466</link>
    </item>
    <item>
      <title>Archived Comments, replied by Jesse Andrews @ Tue, 16 Nov 2004 19:05:49 -0600</title>
      <description>&lt;p&gt;The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008)&lt;/p&gt;</description>
      <pubDate>Tue, 16 Nov 2004 19:05:49 -0600</pubDate>
      <guid isPermaLink="false">userscripts.org:17466:76608</guid>
      <author>Jesse Andrews</author>
      <link>http://userscripts.org/topics/17466</link>
    </item>
  </channel>
</rss>
