no scroll bar? and a weird js error.

Skinning and designing Serendipity (CSS, HTML, Smarty)
Post Reply
yingjai
Posts: 3
Joined: Thu Nov 24, 2005 1:46 pm

no scroll bar? and a weird js error.

Post by yingjai » Thu Nov 24, 2005 1:53 pm

i made a skin (need to finish menu) and it works almost perfect. the problem is that in Maxthon browser, I am not seeing any scroll bars even though i can scroll with wheelmouse. I believe the scrollbar is visible in Microsoft Internet Explorer. I can force the scrollbar to appear by using the <body scroll=yes> tag, but that is technically the wrong way to do it so I was wondering how to fix this.

you can view page here http://meta.sytes.net:8000/serendipity/

anyways, as for the javascript error, it only happens when you go into the full view of a post. all other pages (ie. external php script or static page) does not have a script error. also the error says line 2, which is odd since i believe it's a smarty tag.

User avatar
garvinhicking
Core Developer
Posts: 30020
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: no scroll bar? and a weird js error.

Post by garvinhicking » Thu Nov 24, 2005 2:31 pm

Hm, I don't have/use maxthon, but in my IE and firefox it works properly. Maybe it's an issue with floating elements?

Your JS errors is because you use this line:

Code: Select all

<script type="text/javascript" src="pngfix.js"></script>


You must use an absolute path to reference your script:

Code: Select all

<script type="text/javascript" src="/serendipity/pngfix.js"></script>


because else, when you look at an detailed entry, you are in the path "/serendipity/archives", and there is no pngfix.js in your virtual /serendipity/archives/ folder :)

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/

yingjai
Posts: 3
Joined: Thu Nov 24, 2005 1:46 pm

Post by yingjai » Fri Nov 25, 2005 12:06 am

i see.. thanks..
but the other skins work fine for maxthon.. and the layout is laid out with tables only cept for the header..

yingjai
Posts: 3
Joined: Thu Nov 24, 2005 1:46 pm

Post by yingjai » Fri Nov 25, 2005 5:02 am

nevermind.. it mysteriously fixed itself after i gave up. never understood what the problem for the scrollbar was.

Post Reply