Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Feature oriented object detection
Old 05-29-2008, 11:11 AM Feature oriented object detection
cjreynolds's Avatar
Novice Talker

Posts: 6
Name: Joe Reynolds
Trades: 0
I commonly use "feature detection" to make my scripts cross-browser compatible. ie:
Code:
 
if(document.getElementById)
or
Code:
if(document.images)
I need to detect whether or not the user's browser will perform IE's "blendtrans" filter.
Code:
if this browser does filters
 document.images.Pic1.style.filter="blendTrans(duration=1)";
 document.images.Pic1.filters.blendTrans.Apply();
 document.images.Pic1.src = image;
 document.images.Pic1.filters.blendTrans.Play();
Actually, I remember posting a question about this code to another forum several months ago, and someone directed me to a website that explained how to make a fade-in work in each of the major browsers, but I've searched the forum (and the web), and can't find it.

Any aid is appreciated...

joe
cjreynolds is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 05-29-2008, 12:16 PM Re: Feature oriented object detection
cjreynolds's Avatar
Novice Talker

Posts: 6
Name: Joe Reynolds
Trades: 0
Found the site - their script doesn't use feature detection. It's a good solution, but I'd still like to hear from anyone who knows how to do feature detection with the IE filter method...
cjreynolds is offline
Reply With Quote
View Public Profile
 
Old 05-29-2008, 07:36 PM Re: Feature oriented object detection
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,383
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Quote:
I need to detect whether or not the user's browser will perform IE's "blendtrans" filter.
Probably quite simple really,

If it isn't IE;


It doesn't
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 05-29-2008, 07:52 PM Re: Feature oriented object detection
logic ali's Avatar
Super Talker

Posts: 104
Trades: 0
Quote:
Originally Posted by cjreynolds View Post
I need to detect whether or not the user's browser will perform IE's "blendtrans" filter.
You should be OK with:
Code:
if(document.images[0].filters)
 ...
although it's better to simulate the effect for all browsers with a common routine.
logic ali is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Feature oriented object detection
 

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

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





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.31332 seconds with 12 queries