[pmwiki-users] Drop Down Menu
Christian
Stealth at fireflyuk.net
Sun Jul 1 08:57:08 CDT 2007
in reference to this
<http://www.pmwiki.org/wiki/Cookbook/HorizontalVerticalMenu> cookbook i
have downloaded the various things, but i do not have the ability to
change my mime-type, so i plan to use this
<http://www.hoeben.net/aldo/htc_components_in_xp_service_pack_2_2> PhP
work around.
i modified the cookbook slightly, by adding the .php to the end of the
htc file.
$HTMLHeaderFmt[] = '<!--[if IE]><style type="text/css"
media="screen">body{behavior:url($PubDirUrl/menus/*csshover.htc.php*);}</style><![endif]-->'."\n";
$HTMLHeaderFmt[] = "<link rel='stylesheet'
href='$PubDirUrl/menus/cssmenu.css' type='text/css' />\n";
and i modified the htc file as follows. (also it is now csshover.htc.php)
<?php
ob_start();
?>
<attach event="ondocumentready" handler="parseStylesheets" />
<script>
/**
* Whatever:hover - V1.42.060206 - hover & active
* ------------------------------------------------------------
* (c) 2005 - Peter Nederlof
* Peterned - http://www.xs4all.nl/~peterned/......
and
if(classReg && !classReg.test(node.className)) continue;
nodes[nodes.length] = node;
}
}
return nodes;
}
</script>
<?php
header("Content-type: text/x-component");
header("Content-Length: ".ob_get_length());
header("Content-Disposition: inline; filename=csshover.htc");
ob_end_flush();
?>
this gets the drop down menu to work in IE if you dont have access to
your apache bits and bobs.
all the information used to do this was collected from the mentioned
links at the top of this email. none of it in any way is my work
More information about the pmwiki-users
mailing list