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-18-2007, 12:02 AM
d15c1pl3 d15c1pl3 is offline
Junior Member
 
Join Date: Jun 2007
Posts: 2
Default Adding PX to Calendars Top And Left style atributes

In calendar.js I made these changes, Line 88-89:

getObj('fc').style.left=(Left(ielem)) + "px";
getObj('fc').style.top=(Top(ielem)+ielem.offsetHei ght) + "px";

From this:
getObj('fc').style.left=Left(ielem);
getObj('fc').style.top=Top(ielem)+ielem.offsetHeig ht;
Reply With Quote
  #2  
Old 06-18-2007, 12:05 AM
d15c1pl3 d15c1pl3 is offline
Junior Member
 
Join Date: Jun 2007
Posts: 2
Default

I believe that you may need the px on the style attribute when you are using a non quircks mode DTD such as Strict, or transitional.

For instance on http://calendar.swazz.org/ works great for me.

But when I use it on a Strict DTD page it does not work unless I add in the px to the Style attributs.
Reply With Quote
  #3  
Old 06-19-2007, 10:55 AM
Dreamweaver Dreamweaver is offline
Junior Member
 
Join Date: Jun 2007
Posts: 15
Default

look at the function that i created:

http://boxover.swazz.org/forum/how-t...ar-t512-1.html

with this function you can use %,px, em and all the others attributes to position your calendar.
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 11:42 AM.