Code Comments
Programming Forum and web based access to our favorite programming groups.PHPDiscuss - PHP Newsgroups and mailing lists schrieb:
>html file
>
>{* Smarty *}
>
>{literal}
><script language="javascript">
>
>
> var flag0;
> //alert (flag);
>
> var ce_pun="<tr><td class='style23 style40 style42'> MANAGE PRODUCTS <br>
><br>help</td></tr>";
>
>
>function vizibilitate()
>{
> var table=document.getElementById('help');
> if (document.hide_form.help_button.value=="Show")
> {
> if (!flag==0)
> {
> if(table.innerHTML!="")
> {
> table.innerHTML="";
> }
>
> else
> {
>
> table.innerHTML=ce_pun;
> }
> document.hide_form.help_button.value="Hide";
> }//if flag
> else
> {
>
> table.innerHTML=ce_pun;
> flag=1;
> document.hide_form.help_button.value="Hide";
> }
> }//if
> else
> {
> document.hide_form.help_button.value="Show";
> table.innerHTML="";
> flag=1;
> }
>}
></script>
>{/literal}
>
>
><td valign="bottom">
> <form name="hide_form">
> <input type="button" name="help" value="Help!"
>onClick="java script:vizibilitate()">
> <input type="hidden" name="help_button" value="Show">
> </form>
>
></td>
>
><table id="help" width="80%" border="1" cellpadding="6" cellspacing="0"
>bordercolor="#009900" bgcolor="#FFFFCC">
>
>
> </table>
>
>
>-----This works with Mozzila but it doesn't work with InternetExplorer.
>Somebody know why? Please help me!
>
>
>
>
>
>
>
use this:
onClick="vizibilitate(); return true;"
And btw this is a general problem, not one with smarty imho.
Rainer
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.