Javascript Tooltips, Popups, Captions - BoxOver  

Go Back   Javascript Tooltips, Popups, Captions - BoxOver > Javascipt calendar > Bugs
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
  #1  
Old 06-22-2007, 11:28 PM
john john is offline
Junior Member
 
Join Date: Jun 2007
Posts: 1
Default DOCTYPE Causing Positioning Problems?

If you add:

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
To the top of example.html, the calender positioning goes all squirelly - it stops setting the 'left' and 'top' style attributes ... anyone got a fix???

Cheers,

John

PS. Sweet calender : )
Reply With Quote
  #2  
Old 07-24-2007, 09:17 PM
Dreamweaver Dreamweaver is offline
Junior Member
 
Join Date: Jun 2007
Posts: 15
Post

post your code!!!
Reply With Quote
  #3  
Old 07-25-2007, 03:07 PM
carenthir carenthir is offline
Junior Member
 
Join Date: Jul 2007
Location: Paris
Posts: 3
Send a message via ICQ to carenthir
Lightbulb

hi,

this is because the browser is switching to standard mode, when using a doctype declaration.

Just add
Code:
+ "px"
at lines 88 and 89 of the script, which gives :
Code:
getObj('fc').style.left=Left(ielem) + "px"; getObj('fc').style.top=Top(ielem)+ielem.offsetHeight + "px";
and it should solve the problem.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 10:36 AM.