473,407 Members | 2,359 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,407 software developers and data experts.

How to get IE code to work in other browsers

KeredDrahcir
426 256MB
I have a piece on DHTML in JavaScript that allows me to show a gallery of image with one image fadeing to the next without the need to do it with Flash.

The code is written for IE and although it works in Firefox it only changes the images over, in the way an animated GIF would do it. Would anybody be able to let me know which changes I need to get it working properly?

Code to go in <head> section:

The code is written for IE and although it works in Firefox it only changes the images over, in the way an animated GIF would do it. Would anybody be able to let me know which changes I need to get it working properly?

Code to go in <head> section:
Expand|Select|Wrap|Line Numbers
  1. <script language="JavaScript1.1">
  2. <!--
  3.  
  4. //*****************************************
  5. // Blending Image Slide Show Script- 
  6. // © Dynamic Drive (www.dynamicdrive.com)
  7. // For full source code, visit http://www.dynamicdrive.com/
  8. //*****************************************
  9.  
  10. //specify interval between slide (in mili seconds)
  11. var slidespeed=3000
  12.  
  13. //specify images
  14. var slideimages=new Array("image1.gif","image2.gif","image3.gif")
  15.  
  16. //specify corresponding links
  17. var slidelinks=new Array("http://www.dynamicdrive.com","http://javascriptkit.com","http://www.geocities.com")
  18.  
  19. var newwindow=1 //open links in new window? 1=yes, 0=no
  20.  
  21. var imageholder=new Array()
  22. var ie=document.all
  23. for (i=0;i<slideimages.length;i++){
  24. imageholder[i]=new Image()
  25. imageholder[i].src=slideimages[i]
  26. }
  27.  
  28. function gotoshow(){
  29. if (newwindow)
  30. window.open(slidelinks[whichlink])
  31. else
  32. window.location=slidelinks[whichlink]
  33. }
  34.  
  35. //-->
  36. </script>
Code to go in <body> section:
Expand|Select|Wrap|Line Numbers
  1. <a href="javascript:gotoshow()"><img src="image1.gif" name="slide" border=0 style="filter:blendTrans(duration=3)" width=97 height=100></a>
  2.  
  3. <script language="JavaScript1.1">
  4. <!--
  5.  
  6. var whichlink=0
  7. var whichimage=0
  8. var blenddelay=(ie)? document.images.slide.filters[0].duration*1000 : 0
  9. function slideit(){
  10. if (!document.images) return
  11. if (ie) document.images.slide.filters[0].apply()
  12. document.images.slide.src=imageholder[whichimage].src
  13. if (ie) document.images.slide.filters[0].play()
  14. whichlink=whichimage
  15. whichimage=(whichimage<slideimages.length-1)? whichimage+1 : 0
  16. setTimeout("slideit()",slidespeed+blenddelay)
  17. }
  18. slideit()
  19.  
  20. //-->
  21. </script>
  22.  
  23. <p align="center"><font face="arial" size="-2">This free script provided by<br>
  24. <a href="http://www.dynamicdrive.com">Dynamic Drive</a></font></p>
Many thanks.
Aug 15 '11 #1
0 971

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

Similar topics

16
by: Harlan Messinger | last post by:
1. CSS has five generic font family specifiers: serif, sans-serif, cursive, fantasy, monospace. IE lets the users select a default proportional font and a default monospace font. Is there any way...
8
by: Information | last post by:
I'm looking for a script that will check a visitors browser. Now, I only want visitors using Microsoft InterNet Explorer to visit existing URL and all other browsers will be redirected to another...
8
by: Frank Rizzo | last post by:
I am trying to make sure that my app works fine with browsers other than IE. I am finding that many features simply don’t work on other browsers. For instance, the Validators are actually doing...
5
by: Peter Michaux | last post by:
Hi, I just did a bunch of testing and was surprised with the results. If anyone doesn't know this stuff here is what I found about event.clientX. The event.clientX property in Safari is in...
1
by: windy | last post by:
Hello again, Thank you for the help so far. Question: I am presently using notepad as my html editor and do have FrontPage on my hard drive. How does one gain access to Opera and other browsers i.e....
4
by: wheelhouse5 | last post by:
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... ...
3
by: trint | last post by:
My web site works just fine with Internet Explorer 6 and 7. But GridViews, FormViews and other parts of my site are either overlapping or not where they are supposed to be or missing alltogether...
37
by: Mason C | last post by:
I have a small, validated page that uses "bgcolor" in <body... and several <td... 's The colors show ok in Opera but not in MSIE or Firefox. http://frontal-lobe.info/link2pdf.html I've been...
2
by: jtime | last post by:
I recently inherited a page from a former coworker and am stuck with how to fix it. The webpage provides the user with a form that allows them to select from different criteria, and as the user...
2
by: rahil khera | last post by:
The asp scripts containing codes related to cookies, session, data base and file does not works properly in fire fox and other browsers while it works perfectly with IE. When I am trying to execute...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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
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
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.