silver74 Posted September 29, 2006 Share Posted September 29, 2006 hello,at this moment i use the ultimate theme for one of my wpi's,and it works fine.But i have a little probleme with the the screen size.When i work on 1280 the list of programmes go inside into config menu.screen 1280:screen 1024:Can everyone telle me how to resize automaticly the them for differente screens? Link to comment Share on other sites More sharing options...
zorphnog Posted September 29, 2006 Share Posted September 29, 2006 The Ultimate theme is made specifically for the 1024x768 resolution. The background, which contains the sidebar image, is 1024x768. Therefore when you go to 1280x1024 the background gets streched and produces the less sharp and larger sidebar.The only way to fix it is to either make a duplicate background with a 1280x1024 resolution or make a separate image for the sidebar that looks like current one and rearrange the html code to show it dynamically. I'm afraid neither one is going to easy or worth the trouble.I think I would try to contact the author of the theme and ask for a 1280 size background. Its worth a shot at least. Link to comment Share on other sites More sharing options...
silver74 Posted September 30, 2006 Author Share Posted September 30, 2006 I have searched this night to find a other solution,and i have find a little javascript.But i have problemes to insert this script into my wpi.htm file.So i need some help from you.Normaly il this script will changes the background image if the screen resolution changes.<script type="text/javascript">if (screen.width==1024||screen.height==768)document.write('<img id='bgpic' src='./Themes/Ultimate/BGMain.gif' width="100%" height="100%">');else if (screen.width==1280||screen.height==1024)document.write('<img id='bgpic' src='./Themes/Ultimate/BGMain2.gif' width="100%" height="100%">');</script>But something goes wrong when i try to take into my wpi.htm file.here the original source code:<script type="text/javascript"> sizer(); if (top.status != "") winheight = top.status; cols = Math.round((winheight/3*4)/320,0); if (!maxentries) { switch (winheight) { case '600': maxentries=19; break; case '768': maxentries=26; break; case '1024': maxentries=38; break; case '1200': maxentries=44; break; default: maxentries=31; break; } }</script> <div id='bgpiclayer' style="z-index:-1; position:absolute; top:0; left:0; width:100%; height:100%; display:block; overflow:hidden;"><img id='bgpic' src='./Themes/Ultimate/BGMain.gif' width="100%" height="100%"></div><script type="text/javascript"> if (BgPicture != '') document.all.bgpic.src = "./Graphics/" + BgPicture;</script><table border="0" width="100%" height="100%" cellspacing="0" cellpadding="0">Somebody can tell me how i cans itegrates the script to my htm file? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now