473,406 Members | 2,705 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Porting BlendTrans functionality to other browsers

I've got a file that uses the blendTrans style for a photo slideshow. It works fine with Internet Explorer, but not with any other browsers. What do I need??? Thanks, here's my slideshow code...

Expand|Select|Wrap|Line Numbers
  1. // Set the slideshow speed (in milliseconds)
  2. var SlideShowSpeed = 3000;
  3.  
  4. // Set the duration of crossfade (in seconds)
  5. var CrossFadeDuration = 3;
  6.  
  7. function runSlideShow(){
  8. if (document.form1.automatic.checked){
  9.     if (currentIndx<imagesPreloaded.length){
  10. currentIndx=currentIndx
  11. }
  12. else {
  13.  currentIndx=1
  14. }    
  15. document.getElementById('photo').style.filter="blendTrans(duration=2)";
  16. document.getElementById('photo').style.filter="blendTrans(duration=CrossFadeDuration)";
  17. document.getElementById('photo').filters.blendTrans.Apply();}
  18. document.getElementById('photo').src = imagesPreloaded[currentIndx].src
  19. document.getElementById('number').innerHTML=number[currentIndx];
  20. if (document.form1.automatic.checked) document.getElementById('photo').filters.blendTrans.Play();
  21. currentIndx = currentIndx + 1;
  22. if (currentIndx > (imagesPreloaded.length)) currentIndx=1;
  23. var delay2 = setTimeout('runSlideShow()', SlideShowSpeed);
  24. }
  25.  
LINKS

HTML: http://njn.net/edtest/photogalleryFADE.html
EXTERNAL JS: http://njn.net/edtest/pgfade.js
Aug 20 '07 #1
4 2490
pbmods
5,821 Expert 4TB
Heya, Wheelhouse. Welcome to TSDN!

Please use CODE tags when posting source code. See the REPLY GUIDELINES on the right side of the page next time you post.

Changed thread title to better describe the problem (did you know that threads whose titles contain phrases such as, 'need help' actually get FEWER responses?).
Aug 20 '07 #2
acoder
16,027 Expert Mod 8TB
I've got a file that uses the blendTrans style for a photo slideshow. It works fine with Internet Explorer, but not with any other browsers. What do I need???
Use the opacity property. This will work in newer browsers. For older Mozilla browsers, you can use moz-opacity (mozOpacity in Javascript).

Use setTimeout or setInterval to control the blending effect by either decreasing or increasing the opacity value.
Aug 20 '07 #3
Does this mean I need all new coding for the slideshow, or is it something that can just be added. Sorry, I'm a Javascript novice!
Aug 20 '07 #4
gits
5,390 Expert Mod 4TB
hi ...

yep ... unfortunately you have to test/find out what css is supported by all browsers you want to support ;) ... an other way would be to use a better effect-lib that does the job for you ... otherwise you have to adapt all for yourself ... but it is not that much ... usually you only need to add that other style-settings to the script since the different browsers only support one of them and ignore the others ... or you set the styles conditionally dependend to the browser, that would be much cleaner because you avoid parse errors due to the ignoring or better the none ignoring parsing of 'wrong' css-rules that might be implemented in the future

kind regards
Aug 20 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: eichin | last post by:
One of my recent projects has involved taking an accretion of sh and perl scripts and "doing them right" - making them modular, improving the error reporting, making it easier to add even more...
1
by: Andrew Hoi | last post by:
Hi, I have a web site that use META tag like below : <META content=blendTrans(Duration=1.0) http-equiv=Page-Enter> <META content=blendTrans(Duration=1.0) http-equiv=Page-Exit> it work...
7
by: Sonny | last post by:
I need to port a library that is written entirely in C to C++. The library is supported on quite a few platforms (windows, Solaris, Linux, AIX, HP-UX, OSX, etc...) and there's quite an existing...
6
by: Matt | last post by:
By using javascript, is it possible to disable the REFRESH functionality (F5 or refresh icon) in a browser? Please advise. Thanks!!
25
by: KK | last post by:
Hi, I am using history.go(-1) for implementing the back button functionality. Its working fine but with this exception. 1. The page which is having back button has some hyperlinks on it. ...
11
by: Errol Neal | last post by:
Hi all, Not sure if this is a question for a php list or this one, but I'll give it a shot and if I am wrong, please do not crucify me. :-) There is a php based sourceforge project called...
4
by: Chris Travers | last post by:
Hi all; A few years ago, I set about porting a PHP application from MySQL to PostgreSQL, after realizing that MySQL wasn't going to be able to handle it. In order to do this, I built a light,...
4
by: Ian | last post by:
I would like to hear from others who have considered and/or ported code from traditional C++ to C++/CLI. The class library I am considering porting to C++/CLI was written in traditional C++ with...
47
by: =?Utf-8?B?ZW1hdmlzdQ==?= | last post by:
Dear guys, I'm in trouble having to port my project from C++Builder6 to VisualC++. Has anyone of you idea if there are any tools to help my doing this job? My current project is widely using VCL...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.