Latest X Posts in a templated Phorum-Page
Posted by Thomas Seifert
March 29, 2005 12:58AM |
Registered: 22 years ago Posts: 793 |
Re: Latest X Posts in a templated Phorum-Page March 29, 2005 03:32AM |
Registered: 23 years ago Posts: 1,076 |
rheo Wrote:
-------------------------------------------------------
> > so what do you suggest?
>
> how do i make them exist for firefox?
Well I don't care about NS 4.x at all so I would just get rid of the if and wite the divs no matter what browser is used.
Or you could add || getelementbyid or something in the end.
See how you check for browser support in your show function, was the DHTML a global variable? you could use that too then if(DHTML){...
---
-=[ Panu ]=-
-------------------------------------------------------
> > so what do you suggest?
>
> how do i make them exist for firefox?
Well I don't care about NS 4.x at all so I would just get rid of the if and wite the divs no matter what browser is used.
Or you could add || getelementbyid or something in the end.
See how you check for browser support in your show function, was the DHTML a global variable? you could use that too then if(DHTML){...
---
-=[ Panu ]=-
April 05, 2005 06:06PM |
Registered: 22 years ago Posts: 793 |
Re: Latest X Posts in a templated Phorum-Page April 05, 2005 08:31PM |
Registered: 23 years ago Posts: 1,076 |
replace
Newer check just for document.all and document.layers if you want to be future safe (or present safe as all modern browser support getElementbyId) And I quess you could drop NS 4 support too already...
---
-=[ Panu ]=-
echo "<script language=\"Javascript\">\n<!-- \nif ((document.layers)||(document.all)) {\n"; with echo "<script language=\"Javascript\">\n<!-- \nif (document.getElementById || document.layers || document.all) {\n";and you should be fine I quess.
Newer check just for document.all and document.layers if you want to be future safe (or present safe as all modern browser support getElementbyId) And I quess you could drop NS 4 support too already...
---
-=[ Panu ]=-
April 20, 2005 10:22PM |
Registered: 22 years ago Posts: 793 |
Finally had time to look at this again.
I got it working in both IE and FireFox now however the positioning of the popup element isn't working out.
Does anyone know how you could position the popup excerpt over the subject link?
[www.neotribes.net]
Re: Latest X Posts in a templated Phorum-Page April 21, 2005 04:08AM |
Registered: 23 years ago Posts: 1,076 |
April 21, 2005 01:21PM |
Registered: 22 years ago Posts: 793 |
Re: Latest X Posts in a templated Phorum-Page April 21, 2005 07:30PM |
Registered: 23 years ago Posts: 1,076 |
April 24, 2005 12:37PM |
Registered: 22 years ago Posts: 793 |
already did this..
.popup {position: absolute; width: 350px; background-color:#FFFFFF; layer-background-color:#FFFFFF; visibility: hidden; left:30px; top: 50px;
font-size: 9pt; font-family: arial, helvetica, sans-serif; color:#000000; text-decoration:none;
padding: 5px 5px 5px 5px; border-width: 1; border-color: #cc0000; border-style: solid; margin: 0 0 0 0}
if i change it to relative instead of absolute position the boxes appear after the table.. but in the position relative to where the subject appears in the table.
i think i could get this to behave properly if i used DIVs for the layout instead of a table.
i notice that the index.tpl does this. i haven't figured out quite how that works yet tho.
Re: Latest X Posts in a templated Phorum-Page April 24, 2005 06:18PM |
Registered: 23 years ago Posts: 1,076 |
Sorry, only registered users may post in this forum.