Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > JavaScript weirds

JavaScript weirds
Thread Tools
Mac Elite
Join Date: Mar 2001
Status: Offline
Reply With Quote
Jun 8, 2001, 08:05 PM
 
I just came across a really werid thing. i have about 7 images. when you mouseover the image it rollsover, it also makes 2 more areas do a "disjoint" rollover at the same time. the cool thing about it is that i have 7 sets of 3 images, one for each set of rollovers which are similarly named. i decided to take advantage of the naming scheme for my rollovers to minimize code. the weird thing is that when my <pre>document.rectangle.src&l t;/pre> image evaluated to "images/rectangleotehrservices.gif" it wouldn't show up in OS9 IE 5.0 (2022). I tried everything but decided that maybe it had to do something about the limitations of OS9's file system so I shortened the name of the image to <pre> rectangleothersvcs.gif </pre> and it worked! (i changed the other 2 sets of images for the rectangle set, too, just so that my functions would still work.

Here's the code in case you decide to use your graphics' naming schemes to your advantage someday.

the website that i'm re-doing is www.raman-sinha.com/coastaldev which i originally did in fireworks but got turned off by the huge amount of dreamweaver javascript code and clear rectangles, etc..

--well.. i couldn't paste HTML code cause HTML is off
     
Admin Emeritus
Join Date: Nov 2000
Location: New Yawk
Status: Offline
Reply With Quote
Jun 8, 2001, 10:35 PM
 
You can post HTML code, sure. Just enclose it in teletype tags and set it off by spaces.

HTML code is bad to have on because it shows the results of your code, and most of the time you want to find something wrong in *bad* code. Also, stuff like META redirects can be a bad bad thing.

cheers
"Do not be too positive about things. You may be in error." (C. F. Lawlor, The Mixicologist)
     
   
Thread Tools
Forum Links
Forum 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 On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 06:08 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2