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
Old 06-23-2010, 08:36 PM Firefox 'blindness'
Junior Talker

Posts: 4
Name: Criz Skjott
Trades: 0
I'm not that clever so I thought I'd join because I really want to know more.. I believe in simplicity and making a new site I found a free JS that suited me just fine for what I intended.. this is it:


<!-- TWO STEPS TO INSTALL IMAGE VIEWER:

1. Copy the coding into the HEAD of your HTML document
2. Add the last code into the BODY of your HTML document -->

<!-- STEP ONE: Paste this code into the HEAD of your HTML document -->

<HEAD>

<SCRIPT LANGUAGE="JavaScript">

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin

function changeImage(filename)
{
mainimage.src = filename;
}

// End -->
</script>

</HEAD>

<!-- STEP TWO: Copy this code into the BODY of your HTML document -->

<BODY>

<p>
<a href="javascript:changeImage('image-viewer/image1.jpg')">Image 1</a>
<a href="javascript:changeImage('image-viewer/image2.jpg')">Image 2</a>
<a href="javascript:changeImage('image-viewer/image3.jpg')">Image 3</a>
<a href="javascript:changeImage('image-viewer/image4.jpg')">Image 4</a>
</p>
<p>
<img name="mainimage" src="image-viewer/blank.jpg"></p>


<p><center>
<font face="arial, helvetica" size"-2">Free JavaScripts provided<br>
by <a href="http://javascriptsource.com">The JavaScript Source</a></font>
</center><p>

<!-- Script Size: 1.14 KB -->

Staying on one page, it will display lots..

So I made it work on my preferred browsers, which now are primarily Chrome and Safari, and this JS works beautifully, and then for a last check in Firefox there is a fat nothing happening??!

I tried as much as my capacity goes and I'm stuck in a zillion FAQ's and what not. I give up, I'm tired, and real fed up w. trying to 'please' FF!!

I'm hoping it's as simple silly as having to add no border to img so FF get's it too, but here I'm lost.. Help or pointers would be mighty appreciated

Thanx in advance

Last edited by Skodanske; 06-23-2010 at 08:56 PM..
Skodanske is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-24-2010, 06:52 AM Re: Firefox 'blindness'
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,384
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
We cannot debug YOUR page without SEEING YOUR page and the code on it.
__________________
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 06-24-2010, 08:20 AM Re: Firefox 'blindness'
Junior Talker

Posts: 4
Name: Criz Skjott
Trades: 0
Fair enough: here's the preliminary testpages

http://cskjott.com/Alexandros/p.01.html

safari chrome and even IE can do the JS but FF just friggin'can't?

thanks
Skodanske is offline
Reply With Quote
View Public Profile
 
Old 06-24-2010, 09:32 AM Re: Firefox 'blindness'
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,384
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Firefox error console.
Quote:
Security Error: Content at http://cskjott.com/Alexandros/p.01.html may not load or link to file:///Macintosh%20HD/Users/CS/Sites/cskjott.com/Alexandros/site%203/monogram.gif.
Having links to files on your HD is NOT a good idea.
__________________
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 06-24-2010, 09:36 AM Re: Firefox 'blindness'
Junior Talker

Posts: 4
Name: Criz Skjott
Trades: 0
True; testpage like I said, but you wanted to see it and I oblige

But could you tell me why FF is NOT executing the following:

<td class="menutbl"><a href="JavaScript:changeImage('img/011.jpg')"><img src="thumbnails/011a.jpg" width="50" height="50" border="0" /></a></td>

is to

<td class="imggal"><img name="mainimage" src="img/09.jpg" oncontextmenu="return false"></td>

when obviously any other browser does?

<td class="menutbl"><a href="JavaScript:changeImage('img/09.jpg')"><img src="thumbnails/09a.jpg" width="50" height="50" border="0" onclick="{document.forms[0].submit();</td>

then I tried adding last argument to no avail: onclick="blablabla" which somewhere seemed an add-on to 'help' FF like the "no border" argument... but no go

Thanks again

Last edited by Skodanske; 06-24-2010 at 09:42 AM..
Skodanske is offline
Reply With Quote
View Public Profile
 
Old 06-24-2010, 01:04 PM Re: Firefox 'blindness'
Extreme Talker

Posts: 246
Trades: 0
Change you function to this:

function changeImage(filename)
{
document['mainimage'].src=filename;
}

Also get rid of this in 2 spots as well:

onclick="{document.forms[0].submit(); this.disabled=true; return false;}"
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
stbuchok is offline
Reply With Quote
View Public Profile
 
Old 06-24-2010, 01:19 PM Re: Firefox 'blindness'
Junior Talker

Posts: 4
Name: Criz Skjott
Trades: 0
stbuchok! Your a prince, thx a bunch!

Oh the onclick argument was my (cough) attempt at 'salvaging'! Gone, elimine, vorbei, herut!!

Last edited by Skodanske; 06-24-2010 at 01:22 PM..
Skodanske is offline
Reply With Quote
View Public Profile
 
Old 06-24-2010, 08:08 PM Re: Firefox 'blindness'
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Wow, there are many solutions that are much more unobtrusive than that kind of scripting, and they're not hard to implement at all.. AND they work in most browsers
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 06-25-2010, 07:28 AM Re: Firefox 'blindness'
Extreme Talker

Posts: 246
Trades: 0
LadynRed, feel free to educate and show the code.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
stbuchok is offline
Reply With Quote
View Public Profile
 
Old 06-25-2010, 09:26 AM Re: Firefox 'blindness'
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
http://www.webmaster-talk.com/websit...galleries.html
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Firefox 'blindness'
 

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.45158 seconds with 12 queries