473,856 Members | 1,850 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Cutehtml Javascript works on IE & Opera but not Mozilla 3.0.1

2 New Member
I use cutehtml as these are my starting days with Javascripts. The script generated by CuteHTML works in IE and Opera. It does not however work in Mozilla. its a slideshow of images. The problem with Mozilla is that the page loads and the slideshow never loads giving me a static blank area where the slideshow should have loaded.

I am pasting the script below.

[HTML]<script language="JavaS cript">


//Specify the slider's width (in pixels)
var sliderwidth=700 ;
//Specify the slider's height (in pixels, pertains only to NS)
var sliderheight=14 5;
//Specify the slider's scroll speed (larger is faster)
var slidespeed=7;

//Specify the slider's images
var leftrightslide= new Array();
var finalslide='';
leftrightslide[0]= '<img src="images/01.jpg" border=1>';
leftrightslide[1]='<img src="images/02.jpg" border=1>';
leftrightslide[2]='<img src="images/03.jpg" border=1>';
leftrightslide[3]='<img src="images/04.jpg" border=1>';

///////do NOT edit pass this line////////////////////////////////////

var copyspeed=slide speed;
//copy contents of leftrightslide into one variable
for (i=0;i<leftrigh tslide.length;i ++)
finalslide=fina lslide+leftrigh tslide[i]+"&nbsp;&nbsp;" ;

if (document.all){
//dynamically write out the marquee tag
document.write( '<marquee id="ieslider" scrollAmount=0 style="width:'+ sliderwidth+'"> '+finalslide+'</marquee>');
//stop marquee when mouse is over it
ieslider.onmous eover=new Function("iesli der.scrollAmoun t=0");
//re-enable marquee when mouse is out
ieslider.onmous eout=new Function("if (document.ready State=='complet e') ieslider.scroll Amount=slidespe ed");

function regenerate(){
window.location .reload();
function regenerate2(){
if (document.layer s){
document.ns_sli der01.visibilit y="show";
setTimeout("win dow.onresize=re generate",450);
intializeleftri ghtslide();
if (document.all)
ieslider.scroll Amount=slidespe ed;

//NS specific function for initializing slider upon page load
function intializeleftri ghtslide(){
document.ns_sli der01.document. ns_slider02.doc ument.write('<n obr>'+finalslid e+'</nobr>');
document. ns_slider01.doc ument.ns_slider 02.document.clo se();
thelength=docum ent.ns_slider01 .document.ns_sl ider02.document .width;

//NS specific function for sliding slideshow
function scrollslide(){
if (document.ns_sl ider01.document .ns_slider02.le ft>=thelength*(-1)){
document.ns_sli der01.document. ns_slider02.lef t-=slidespeed;
setTimeout("scr ollslide()",100 );
document.ns_sli der01.document. ns_slider02.lef t=sliderwidth;
window.onload=r egenerate2;


<ilayer width=&{sliderw idth}; height=&{slider height}; name="ns_slider 01" visibility=hide >
<layer name="ns_slider 02" onMouseover="sl idespeed=0;" onMouseout="sli despeed=copyspe ed"></layer>
Jul 28 '08 #1
8 1626
5,390 Recognized Expert Moderator Expert
the entire code uses outdated browser detection ... document.all for IE and document.layers otherwise ... the otherwise part is much too old ... so either use e newer script or start to code your own ones ... :)

kind regards
Jul 28 '08 #2
428 Contributor
ilayer and layer are never going to be supported by any new browser.

You could use Netscape Navigator, which, along with IE4, are what CuteHTML thought was cute, in the '90s.
Jul 28 '08 #3
2 New Member
yes. thank you guys. that explains. i need to update my HTML editor as well then.
Aug 7 '08 #4
65 New Member
I'm working on a slide-show script myself at the moment, if you would like to use the completed product, just send me a private message. :)
Aug 8 '08 #5
16,027 Recognized Expert Moderator MVP
Here's a nice simple one from the howto section.
Aug 8 '08 #6
65 New Member
Ah, I'm working on a much more advanced one at the moment with things like play, backwards, pause, rewind, forward fast, skip forwards/backwards, and pick an image in the slide show in real time to jump to.
Aug 9 '08 #7
16,027 Recognized Expert Moderator MVP
Maybe you could top that howto then ;)
Aug 9 '08 #8
65 New Member
Haha! I'll give it a shot. :D
Aug 11 '08 #9

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

Similar topics

by: Florian Proch | last post by:
Hi all... i'm currently working for a big project to construct a website. We need to support some browser and OS : IE 5.0 -> IE 6, Mozilla 1.2 -> 1.7, Opera 5 -> Opéra 7.5x, Netscape 4.75 -> NS 7.2, Safari and for OS : Win95/98/NT/Me/2000/XP, MacOS 9/10, Linux. I have some problems with browser on different OS. For example i have write a javascript who make a automatic submit when the page is reload.
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.