GoLive rollover problem

  • DeadBolt
  • Novice
  • Novice
  • No Avatar
  • Joined: May 12, 2005
  • Posts: 31
  • Status: Offline

Post May 12th, 2005, 3:17 pm

Our company has expanded to include website design, so I've had to learn web design pretty quick which is why I chose to learn through GoLive. Anyways, I'm having a problem with mouseOver Rollover images. I have buttons that seem to be working perfectly when I preview them through GoLive or when I preview it to Firefox. But when I upload it to our site the rollovers don't show up on some browsers.

I'm designing on a Mac and the rollovers seem to work on Safari & IE on Mac but not Firefox. They also aren't working on IE or Firefox on PC.

I've created the images in ImageReady and used the 'Rollover' tool in GoLive to create the rollover.

BTW, here is the test link
http://www.ecohost.net/test/index.html

Any help is greatly appreciated

Thnx
BoLt 8)
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post May 12th, 2005, 3:17 pm

  • DeadBolt
  • Novice
  • Novice
  • No Avatar
  • Joined: May 12, 2005
  • Posts: 31
  • Status: Offline

Post May 13th, 2005, 7:53 am

Anyone??

Please!! :wink:
  • digitalMedia
  • a.k.a. dM
  • Genius
  • User avatar
  • Joined: Dec 29, 2003
  • Posts: 5169
  • Loc: SC-USA
  • Status: Offline

Post May 13th, 2005, 8:13 am

The location of a javascript file has gone awry! :D

Code: [ Select ]
<script type="text/javascript" src="file:///Users/nwdc/Library/Preferences/Adobe/GoLive/Settings7/JScripts/GlobalScripts/CSScriptLib.js"></script>
- dM
  • RichB
  • Guru
  • Guru
  • User avatar
  • Joined: May 17, 2003
  • Posts: 1121
  • Loc: Boston
  • Status: Offline

Post May 13th, 2005, 8:14 am

GoLive's rollover script uses a function called changeImages that must be in the file called CSScriptLib.js - if you view the source of the page you'll see the following link to the .js file:

Code: [ Select ]
<script type="text/javascript" src="file:///Users/nwdc/Library/Preferences/Adobe/GoLive/Settings7/JScripts/GlobalScripts/CSScriptLib.js"></script>


It currently points to the file on your hard drive, so it probably works when you preview it locally. You need to upload the .js file if you haven't already and change the src part of the tag to point to it. For example, if you upload it to a directory called scripts you could use:

Code: [ Select ]
<script type="text/javascript" src="http://www.echohost.net/scripts/CSScriptLib.js"></script>
Free Programming Resources
  • DeadBolt
  • Novice
  • Novice
  • No Avatar
  • Joined: May 12, 2005
  • Posts: 31
  • Status: Offline

Post May 13th, 2005, 8:17 am

Thanks alot RichB,

I'll try that out now.

:D
BoLt
  • RichB
  • Guru
  • Guru
  • User avatar
  • Joined: May 17, 2003
  • Posts: 1121
  • Loc: Boston
  • Status: Offline

Post May 13th, 2005, 8:23 am

er, http://www.ecohost.net/test/CSScriptLib.js

I misread the domain name
Free Programming Resources
  • DeadBolt
  • Novice
  • Novice
  • No Avatar
  • Joined: May 12, 2005
  • Posts: 31
  • Status: Offline

Post May 13th, 2005, 8:32 am

Yep, I realized that too. I made that change but it still doesn't seem to be working. Maybe I'm uploading the wrong CSScriptLib.js file. I did a search for that on my hd and found 4 CSScriptLib.js files. I just uploaded the one that was in a folder called GeneratedItems.

Where abouts would I find that file?

Do I just upload it along with the rest of my HTML files?

Do I need to upload one for each page?

Srry 4 all the Q&A

Thnx
BoLt
  • RichB
  • Guru
  • Guru
  • User avatar
  • Joined: May 17, 2003
  • Posts: 1121
  • Loc: Boston
  • Status: Offline

Post May 13th, 2005, 8:39 am

You only need to upload one, and that's the right one. I took a look at it and the changeImages function is inside it. However, when I look at the test html page it still has my spelling error echohost instead of ecohost, so make sure that you've made the change and uploaded the changed html file as well.
Free Programming Resources
  • RichB
  • Guru
  • Guru
  • User avatar
  • Joined: May 17, 2003
  • Posts: 1121
  • Loc: Boston
  • Status: Offline

Post May 13th, 2005, 8:41 am

By the way you can also use a relative path instead of an absolute path. If the .js file is in the same directory you can just use src="CSScriptLib.js"
Free Programming Resources
  • DeadBolt
  • Novice
  • Novice
  • No Avatar
  • Joined: May 12, 2005
  • Posts: 31
  • Status: Offline

Post May 13th, 2005, 8:49 am

It works! :D

Thanks a ton Rich, you are truly awesome and helpful. I was nearly pulling my hair out.

here you go
Image
  • RichB
  • Guru
  • Guru
  • User avatar
  • Joined: May 17, 2003
  • Posts: 1121
  • Loc: Boston
  • Status: Offline

Post May 13th, 2005, 8:55 am

Heh, thanks. :)

I like the fish hook rollover images by the way. Don't forget to change the same script tag on your other pages too - you only need the one script file, but all the pages that use the rollover code will have to reference it correctly.
Free Programming Resources
  • DeadBolt
  • Novice
  • Novice
  • No Avatar
  • Joined: May 12, 2005
  • Posts: 31
  • Status: Offline

Post May 13th, 2005, 9:00 am

Yep, I realized that. I'm now just trying to reduce the size of that file. I'm reading a tutorial on flattening the CSScriptLib.js file.

Thanks again 8)
  • designer_number_1
  • Born
  • Born
  • No Avatar
  • Joined: Aug 07, 2005
  • Posts: 2
  • Status: Offline

Post August 7th, 2005, 9:35 pm

In GoLive, whenever I open and edit a page directly from the server, the script that controls the rollovers always changes from a relative path to a local path on my computer!

For example, this line:

<script type="text/javascript" src="scripts/CSScriptLib.js"></script>

changes to:

<script type="text/javascript" src="file://users/im_a_dummy/scripts/CSScriptLib.js"></script>

It always seems to want to point to my local machine. This happens about 90% of the time. Is there a way to stop this?
  • ScienceOfSpock
  • Mastermind
  • Mastermind
  • User avatar
  • Joined: Jul 06, 2004
  • Posts: 1890
  • Loc: Las Vegas
  • Status: Offline

Post August 7th, 2005, 11:21 pm

I'm not trying to sound harsh or anything, but the BEST solution is to take the time to learn how to hand code web sites.
It's not the easiest, or quickest solution, but if you learn to hand code, all you need is a text editor.
When you hand code, you can make sure that what you are working on WORKS, and you don't have to depend on some application's proprietary javascript, AND you don't have to worry about the editor changing your links.
I don't know anything about GoLive, and I'm assuming they have some sort of preference you can set so it DOESN'T change your links, but if you hand code, you don't need any preferences to tell the editor not to change your links.
  • designer_number_1
  • Born
  • Born
  • No Avatar
  • Joined: Aug 07, 2005
  • Posts: 2
  • Status: Offline

Post August 8th, 2005, 9:01 am

Actually i do know how to code by hand. I just don't want to do it. After looking at code all day in the office, I would rather come home and use GoLive. Most people say it, and Dreamweaver and FrontPage suck, but I wish to use it at this point.

So my problem isn't what is this line supposed to be, rather why does this software do what it's doing.
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post August 8th, 2005, 9:01 am

Post Information

  • Total Posts in this topic: 33 posts
  • Users browsing this forum: No registered users and 177 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.