Rollover Image on Mozilla Firefox

Use GitHub to post bug reports and error descriptions for phpwcms. Describe your problem detailed!
Locked
kpimichael
Posts: 44
Joined: Mon 29. Dec 2003, 03:29

Rollover Image on Mozilla Firefox

Post by kpimichael »

I am using the 6/22 version of phpwcms. Experimenting with the rollover image content part. I get different results under firefox and ie with the same code. when i try to rollover the small image...the title keeps getting repeated down the page...as long as i keep cursor on the first small image. I do not get this behavior in ie...so i assume it is something to do with how each engine renders. Thought it might be something that would cause a problem somewhere else too. What is being repeated is "this is the picture i wanted you to se" See below:http://kineticpixels.com/downloads/Firefox.jpg
Last edited by kpimichael on Tue 20. Jul 2004, 20:56, edited 1 time in total.
Pappnase

Post by Pappnase »

hello

eich version did you use!? the latest 0.92?
i have also an this error the images work but the caption will repeat endless.
kpimichael
Posts: 44
Joined: Mon 29. Dec 2003, 03:29

Firefox

Post by kpimichael »

Pappnase wrote:hello

eich version did you use!? the latest 0.92?
i have also an this error the images work but the caption will repeat endless.
Yes i am using .092 the latest . Good to see that it is just not me :)
User avatar
Oliver Georgi
Site Admin
Posts: 9914
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

here ist the patch for it tested under IE6 + Mozilla 1.7:

replace function addText() by following code in frontend.js:

Code: Select all

var ie4 = document.all ? 1 : 0;
var ns4 = document.layers ? 1 : 0;
var ns6 = window.netscape ? 1 : 0;

function addText(id,text) {
	
	menuobj = (ie4) ? document.all[id] : (ns6 ? document.getElementById(id) : (ns4 ? document.layers[id] : ''));
	
	if(ie4 || ns6) {
		menuobj.innerHTML=text;
	} else {
		menuobj.document.open();
		menuobj.document.write(text);
		menuobj.document.close();
	}
	
}
Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
Locked