• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

javascript to disable/hide an object

 
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi I want to create a script that would disable/hide lets say for example a quicktime player object once its clicked for a certain number of time and my question is, is this possible using javascript? If so is there any hint, tutorials that you can give me regarding my inquiry?

I have already created a script and sadly it does not work...



Thanks in Advance... Cheers!
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

I have already created a script and sadly it does not work...



It'd be easier to try and find out what is wrong with it if you'd show it to us.

Generally, it's easiest to show/hide HTML elements using the display CSS rule. Set its value to 'block' or 'none' to show/hide respectively.
 
Raymond Villeno
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Here is the script...
The main idea of what the script should do is this,
1. The user will click the button so as the music/video will play
2. Once the button has been clicked it will then be disabled

Now here's the problem...

1. First of it does not play a sound, well actually it paled once or twice but after that it does not play anymore when i set the embed->hidden=false
the object/player is somewhat disabled or something

2. The button is not being disbled once i clicked it...

BTW I'm not that good in javascript and I'm just learning it on the fly and this script is something new to me, and sad to say but i just copied it in the internet and was trying to modify it but the results my efforts aint that good





Thanks in Advance...
 
Raymond Villeno
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have solved it!
and Thanks to Mr. Bear Bibeault for your reply/help!
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic