User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 427,253 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,189 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting

Help Please

Join Date: Jan 2008
Location: Bangalore, India
Posts: 336
Reputation: DangerDev is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 32
DangerDev's Avatar
DangerDev DangerDev is offline Offline
Posting Whiz

Re: Help Please

  #2  
Mar 12th, 2008
hi
use div element, and define following style:
filter:alpha(opacity=50); 
-moz-opacity:0.5; 
opacity:0.5; 
 -khtml-opacity:0.5;

these property is to set opacity.
see ex:
  1. <html>
  2. <head>
  3. <style>
  4. .opec{
  5. background-color:blue;
  6. filter:alpha(opacity=50);
  7. -moz-opacity:0.5;
  8. opacity:0.5;
  9. -khtml-opacity:0.5;
  10. position:absolute;
  11. color:red;
  12. height:50;
  13. width:50;
  14. left:2;
  15. top:5;
  16. }
  17. </style>
  18. </head>
  19. <body>
  20. hi this is in body
  21. <div class="opec">
  22. hi
  23. </div>
  24. </body>
  25. </html>

similaly other thing also you can design.
remeber left and top is to set the x,y postion of div in screen.
A computer lets you make more mistakes faster than any invention in human history - with the possible exceptions of handguns and tequila.
~Mitch Ratcliffe
Reply With Quote  
All times are GMT -4. The time now is 12:59 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC