473,566 Members | 2,812 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;
scrollslide();
}

//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 );
}
else{
document.ns_sli der01.document. ns_slider02.lef t=sliderwidth;
scrollslide();
}
}
window.onload=r egenerate2;

//-->
</script>


<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>
</ilayer>[/HTML]
Jul 28 '08 #1
8 1605
gits
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
mrhoo
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
pitstop10
2 New Member
yes. thank you guys. that explains. i need to update my HTML editor as well then.
Aug 7 '08 #4
moltendorf
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
acoder
16,027 Recognized Expert Moderator MVP
Here's a nice simple one from the howto section.
Aug 8 '08 #6
moltendorf
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
acoder
16,027 Recognized Expert Moderator MVP
Maybe you could top that howto then ;)
Aug 9 '08 #8
moltendorf
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

5
1754
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...
0
7584
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...
0
7888
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8108
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7951
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6260
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
3643
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...
0
3626
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2083
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
925
bsmnconsultancy
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...

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.