Re: making a div id disappear
- From: Neredbojias <neredbojias@xxxxxxxxx>
- Date: Wed, 12 Aug 2009 16:08:53 +0000 (UTC)
On 11 Aug 2009, "ZigZag Life" <zig@xxxxxxx> wrote:
hi guys,
i'm using dw/cs3 for a template driven small site.
the top and bottom nav bars are locked into a template, as well as
center-justified 'home page' links extreme top and bottom
of the page.
the nav bars, and the 'home page' links are each positioned
by unique DIV ID identifiers.
i would like to somehow make the "home page" link
disappear on the actual home page, but since it's
locked into the same template as other pages,
i can't seem to.
is there any kind of scripting i could embed in the template header
that might render the 'home page' link DIV invisible, but only
on the "index.htm" page?
if (location.href.indexOf("home_page")>-1) document.getElementById
("home_page_link_id").style.visibility="hidden";
thanks for any suggestions ('m not a javascripter or php guy,
else i might be able to cook 1 up myself!!)
Gzag
--
Neredbojias
http://www.neredbojias.org/
http://www.neredbojias.net/
.
- References:
- making a div id disappear
- From: ZigZag Life
- making a div id disappear
- Prev by Date: Re: Cross-Browser Scripting
- Next by Date: Re: Cross-Browser Scripting
- Previous by thread: Re: making a div id disappear
- Next by thread: Cross-Browser Scripting
- Index(es):
Relevant Pages
|