Re: making a div id disappear



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/
.



Relevant Pages

  • Re: making a div id disappear
    ... the top and bottom nav bars are locked into a template, ... thanks for any suggestions ('m not a javascripter or php guy, ...
    (alt.html)
  • Re: making a div id disappear
    ... the top and bottom nav bars are locked into a template, ... thanks for any suggestions ('m not a javascripter or php guy, ...
    (alt.html)
  • Re: making a div id disappear
    ... i'm using dw/cs3 for a template driven small site. ... the top and bottom nav bars are locked into a template, ...
    (alt.html)
  • making a div id disappear
    ... i'm using dw/cs3 for a template driven small site. ... the top and bottom nav bars are locked into a template, ...
    (alt.html)