Nightcrawl2r
Newbie
Posts: 1
Registered: 2/13/2004
Location: belgium
Member Is Offline
|
| posted on 2/13/2004 at 05:17 PM |
|
|
Tigra menu positioning problem!
I have a bit of programming knowledge but no JS.
The tigra menu looks great on the site i'm building when viewed at 1024*768, but when i view it with a 800*600 setting it goes wrong. Could
anyone help me plz?
I know this can be done by making the code react to the resolution settings, though i don't know how to do this.
|
|
|
tigra
Administrator
Posts: 1990
Registered: 6/17/2002
Location: US, CO
Member Is Offline
|
| posted on 2/14/2004 at 07:04 AM |
|
|
Free version offers absolute positioning feature: you specify distance to menu in pixels from top and left edges of the document. PRO and GOLD
versions additionally offer other other positioning options. Links:
http://www.softcomplex.com/forum/viewthread.php?tid=29
http://www.softcomplex.com/products/tigra_menu/docs/compare_menus.html
|
|
|
maury
Newbie
Posts: 1
Registered: 5/16/2005
Location: Italy
Member Is Offline
|
| posted on 5/16/2005 at 02:29 PM |
|
|
That's not true,...
It's possible to make the free menu
to position correct even if the user resizes
browser window.
Small changes are required:
1-in .tpl insted a value in left alignement you must insert a variable name (for example myleft)
2-in you page after the <body> tag you must insert a code like this:
<script language=javascript>
if (document.body.offsetWidth<....){ myLeft = ....;} else {myLeft = ((document.body.offsetWidth-....)/2)+.....;}
</script>
replace ... with correct value for your site....
this works fine with Explorer, you have to modify this script if you want use FireFox/Mozilla
when window size changes the position changes correctly AFTER A REFRESH (F5 or reload of the page)
if you want an automatic refresh add this script after <body> tag
<script language=javascript>window.onresize = function () {document.location.reload();}</script>
Do you like this?
M
P.S. Remember to position all other include scripts
just before </body> tag
|
|
|
tigra
Administrator
Posts: 1990
Registered: 6/17/2002
Location: US, CO
Member Is Offline
|
| posted on 5/17/2005 at 10:50 PM |
|
|
this is still true if
1. we're talking about standard version of the script
2. browser compatibility is not affected
3. menu will reposition if visitor changes the window size after the page is loaded
your ideas are welcome, but some webmasters can't settle for partial solution.
|
|
|