Re: please help solve a problem

Thursday, October 18, 2012

nwhite

Thanks for your help. 

fulio pen

On Tuesday, October 16, 2012 12:01:31 AM UTC-4, nwhite wrote:
must be feeling generous today....


The below snippet has the changes in red that will fix your problem. All you need to do is change your reference to the "second" table so the show() and hide() functions can reference correctly.

Fullio, this solution is a train wreck. You would probably be better served using a dom library like jquery to help ease the burden of walking the DOM. It would also make quick work of attaching event listeners instead of inline "onclicks". Reading about javascript scopes and event binding might be a great place to start if your interested in improving your code.



<!-- are you better? 1 -->
<table class='solute'>

<tr>

<script type='text/javascript'>


for( var i=0;i<text2beshown[0].length;i++ ){
document.write('<td class="miDi"><span id="td_1_'+i+'"> </span></td>');
}

</script>

</tr>
</table>


<form>
<input type='button' value='Ideographs' style='margin-right:15px;' name='name1' onClick="loc=1;showIt()" />


<input type='button' value='Hide' name='name2' onClick="loc=1;hideIt()" />

</form>



 









On Mon, Oct 15, 2012 at 5:42 PM, Erik Eckhardt <sill...@gmail.com> wrote:
I don't think visiting your link is a good idea.

Smells like spam/phishing. Reply with your question, please.


On Sat, Oct 13, 2012 at 12:53 PM, Fulio Pen <fuli...@yahoo.com> wrote:
My questions are presented in the following web page:


Thanks a lot for your help. 

fulio pen

--
 
 

--
 
 

--
 
 

0 comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Copyright © 2010 Web Design | Free Blogger Templates by Splashy Templates | Layout by Atomic Website Templates

Vida de bombeiro Recipes Informatica Humor Jokes Mensagens Curiosity Saude Video Games Animals Diario das Mensagens Eletronica Rei Jesus News Noticias da TV Artesanato Esportes Noticias Atuais Games Pets Career Religion Recreation Business Education Autos Academics Style Television Programming Motosport Humor News The Games Home Downs World News Internet Design Entertaimment Celebrities 1001 Games Doctor Pets Net Downs World Enter Jesus Mensagensr Android Rub Letras Dialogue cosmetics Genexus lasofia thebushrajr wingshock tripedes gorduravegetal dainfamia dejavu-transpersonal jsbenfica republicadasbadanas ruiherbon iranianforaryans eaystcheyl fotosdanadir Só Humor Curiosity Gifs Medical Female American Health Madeira Designer PPS Divertidas Estate Travel Estate Writing Computer Matilde Ocultos Matilde futebolcomnoticias girassol lettheworldturn topdigitalnet Bem amado enjohnny produceideas foodasticos cronicasdoimaginario downloadsdegraca compactandoletras newcuriosidades blogdoarmario arrozinhoii