1
Quest
Birthday Block to Photos + Profiles popup.js not work in IE
  • 2006/7/26 11:54

  • Quest

  • Friend of XOOPS

  • Posts: 1034

  • Since: 2005/11/19


I really like this little hack as it fits perfectly into the user interactivity of my site. The only thing is the nice little popup which is suppose to show on mouse over of birthday users name does not show up in IE. It works fine in FireFox. But the majority of my users are using IE. Any ideas on how or what I need to do to get it functioning in IE? Other than burn the IE program.

Here is the hack popup.js:

// Copyright 2006 Bontrager Connection, LLC
// http://www.willmaster.com/blog/css/Floating_Layer_At_Cursor_Position.html
Quote:

var cX = 0; var cY = 0;
function UpdateCursorPosition(e){ cX = e.pageX; cY = e.pageY;}
function UpdateCursorPositionDocAll(e){ cX = event.clientX; cY = event.clientY;}
if(document.all) { document.onmousemove = UpdateCursorPositionDocAll; }
else { document.onmousemove = UpdateCursorPosition; }
function AssignPosition(d) {
d.style.left = (cX+10) + "px";
d.style.top = (cY+10) + "px";
}
function HideContent(d) {
if(d.length < 1) { return; }
document.getElementById(d).style.display = "none";
}
function ShowContent(d) {
if(d.length < 1) { return; }
var dd = document.getElementById(d);
AssignPosition(dd);
dd.style.display = "";
}
function ReverseContentDisplay(d) {
if(d.length < 1) { return; }
var dd = document.getElementById(d);
AssignPosition(dd);
if(dd.style.display == "none") { dd.style.display = ""; }
else { dd.style.display = "none"; }
}

2
Quest
Re: Birthday Block to Photos + Profiles popup.js not work in IE
  • 2006/7/26 12:27

  • Quest

  • Friend of XOOPS

  • Posts: 1034

  • Since: 2005/11/19


Upon further investigation, it was working. But. The problem is its positioning in IE is at the top of the screen where I couldn't see it. In FireFox it is right next to the block, slightly down and to the right. Bleepin IE! Any ideas how to solve the IE positioning problem?

Here is the template info to:

Quote:

<{if $block.hits_birthdays == 0}>




<{$block.lang_birthday_none}>





<{else}>


<{$block.lang_birthday_pre}>

<{$block.hits_birthdays}>

<{$block.lang_birthday_post}>





<{foreach item=result from=$block.results}>



<{/foreach}>

onmouseout= "HideContent('BirthdayPop<{$result.uid}>'); return true;">
<{$result.uname}>



<{foreach item=result from=$block.results}>

<{/foreach}>


<{/if}>

3
Quest
Re: Birthday Block to Photos + Profiles popup.js not work in IE
  • 2006/7/26 22:01

  • Quest

  • Friend of XOOPS

  • Posts: 1034

  • Since: 2005/11/19


Bump?

4
Quest
Re: Birthday Block to Photos + Profiles popup.js not work in IE
  • 2006/8/8 15:12

  • Quest

  • Friend of XOOPS

  • Posts: 1034

  • Since: 2005/11/19


Bumpity Bump Bump ?

Login

Who's Online

473 user(s) are online (69 user(s) are browsing Support Forums)


Members: 0


Guests: 473


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Oct 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits