Revenue Source

Welcome to the Revenue Source affiliate marketing forums.

You are viewing our internet marketing and SEO forums as a guest which gives you limited access to most of our discussions.  By joining our free community, you will have access to post affiliate marketing topics, communicate privately with other members (PM), exchange SEO strategies, and access many other special features.  Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems, please don't hesitate to contact us.

Go Back   Revenue Source > Site Design & Development > HTML & Website Design
Reload this Page How to grey out the background?
Tags: , , , ,

Reply
 
LinkBack Thread Tools Search this Thread
Old
  (#1 (permalink))
light2006 is Offline
Focused light rays
light2006 is almost famous!light2006 is almost famous!light2006 is almost famous!light2006 is almost famous!light2006 is almost famous!
 
light2006's Avatar
 
Join Date: Oct 2006
Posts: 282
Rachel A.
Affiliate/Webmaster
Weekend Affiliate
NJ United States
   
How to grey out the background? - 01-17-2007

I know nothing about Ajax, but I'm eager to learn it.

I'm interested to know how to grey out a background, I see it happen when I click on "Log Out" on this site.

Is greying out done with Ajax? It's a pretty cool effect.
  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#2 (permalink))
RS Tom is Offline
Revenue Source Admin
RS Tom is almost famous!RS Tom is almost famous!RS Tom is almost famous!RS Tom is almost famous!
 
RS Tom's Avatar
 
Join Date: Sep 2004
Posts: 2,406
Tom A.
Jack of All Trades
Revenue Source, Inc.
Ft. Lauderdale, FL United States
   
Re: How to grey out the background? - 01-20-2007

Nope, no AJAX. It's straight DHTML and uses IE's image libraries.

You can read up at IE Filters and Transitions

Code:
function log_out()
{
 ht = document.getElementsByTagName("html");
 ht[0].style.filter = "progid:DXImageTransform.Microsoft.BasicImage(grayscale=1)";
 if (confirm('Are you sure you want to log out?'))
 {
  return true;
 }
 else
 {
  ht[0].style.filter = "";
  return false;
 }
}

You just do the following to use:
Code:
<a href=http://www.revenuesource.com/ onclick="return log_out();">Log Out</a>
The function is called when the link is clicked. It grays out the screen and asks if the user wants to log out. If they click yes, true is returned and the browser visits the href location. If they click no, false is returned and the link doesn't do anything.

AJAX is a different technology that is used to retrieve off-page information without reloading the HTML page. For example, I could have a dropdown that has a country selection. When the person chooses their country, I fire off an AJAX request and it returns a list of provinces/states for the next dropdown box. I can also check username/password availablity using AJAX when someone is filling out a form.

Last edited by RS Tom : 01-20-2007 at 06:41 PM.
  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Revenue Sharing Ads
Old
  (#3 (permalink))
light2006 is Offline
Focused light rays
light2006 is almost famous!light2006 is almost famous!light2006 is almost famous!light2006 is almost famous!light2006 is almost famous!
 
light2006's Avatar
 
Join Date: Oct 2006
Posts: 282
Rachel A.
Affiliate/Webmaster
Weekend Affiliate
NJ United States
   
Re: How to grey out the background? - 01-20-2007

Thank you for the comprehensive explaination.

From reading the code, it looks like that transition filter is really browser dependent.

I tried it on Firefox, and it didn't work.

I remember IE also has a styling feature for the scroll bar, which only works on IE.

Usually W3C catches up with Microsoft and implements those features. I hope W3C does it probably in CSS3.0 or CSS4.0 so that those features can be implemented with ease on all browsers.

Because, there is an increasing number of people using Firefox, as shown by a small sample of my visitor stats in the attachment.
Attached Images
File Type: jpg Browser_Stats.JPG (62.6 KB, 1 views)
  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#4 (permalink))
pakistanboy is Offline
Revenue Source Member
pakistanboy is new to Rev Source.
 
Join Date: Aug 2007
Posts: 42
Pakistan Boy
Graphic Artist/Designer
Self Employed
Karachi Pakistan
   
Re: How to grey out the background? - 08-31-2007

I do not have any idea of AJAX but if you give me your code i would check then i can suggest you about the grey background.
  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#5 (permalink))
amanda123 is Offline
Revenue Source Member
amanda123 is new to Rev Source.
 
Join Date: Oct 2007
Posts: 7
AMANDA
Affiliate/Webmaster
Self Employed
uk United Kingdom
   
Re: How to grey out the background? - 10-30-2007

Well i can supose that how cute effect is that .
I have worked a bit in Ajax but seriously dont have any idea about the background settings.
  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Revenue Sharing Ads
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads for: How to grey out the background?
Thread Thread Starter Forum Replies Last Post
Lost and Grey?s Anatomy on My Google Calendar SEO Blogs SEO / SEM 0 11-15-2006 10:41 PM



© 2004-6 RevenueSource.com.  All rights reserved.  Do not duplicate or redistribute in any form.
This website and its logos/design are property of RevenueSource.com.  All rights reserved. vBSEO 3.2.0 RC7


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34