|
|
||||||
|
||||||
| Index Link To US Private Messages Archive FAQ RSS | ||||||
| Graphics & Design Discussion Forum Post your graphics design questions/comments/ideas in here. Ask questions, post tutorials, discuss trends and best practices. Sub-forum for website accessibility and usability. |
Share Thread: & Tags
|
||||
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
||||
|
Hi,
While I specify specifically in the page code the location of the CSScriptLib.js, example; <link href="http://www.mysite.com/CSScriptLib.js" rel="stylesheet" type="text/css">, once I save the page to my HD the code changes automatically to, example; ../HD/users/preferences/golive/scripts/CSScriptLib.js. I looked under preferences in Golive 6 but can't find any option other than to write the CSS code directly into the page, which could I assume make the page more bulky. What I want is to be able to write in the page code the location of the CSS file, example; <link href="http://www.mysite.com/master_style.css" rel="stylesheet" type="text/css">. So.... If anyone has a solution to this, or indeed any ideas at all, it would be great to have your comments, before I go crazy would help!
__________________
Thanks for your reply Cheers Steven http://stevenredhead.com "Life is not measured by the number of breaths we take...but by the moments that take our breath away." |
|
|||
|
Hi Memoire,
Not sure if you're asking how to link to JS or a CSS file. The URL you listed looks like a JS file that you're calling up as a CSS file. SO, here's both types of links. <script src="YourJSfile.js" language="javascript" type="text/javascript"></script> <link href="YourCSSfile.css" rel="stylesheet" type="text/css"> Yes, you can change to full URL paths if you wish or back out of folders with ../../ Not sure if this was what you were asking for... |
|
||||
|
Well to repeat: In Golive I set the file location as my site folders main folder <link href="http://www.mysite.com/CSScriptLib.js" rel="stylesheet" type="text/css">
WHen I save the file to my HD the file location in the code automatically changes to: ../HD/users/preferences/golive/scripts/CSScriptLib.js. This is a location on my HD. So when I upload the file it can no longer find CSScriptLib.js as the code is telling the page to look on my HD which it can't from the site server. Any help how to set Golive to resolve this would be most welcome. Cheers
__________________
Thanks for your reply Cheers Steven http://stevenredhead.com "Life is not measured by the number of breaths we take...but by the moments that take our breath away." |
|
|||
|
Quote:
Code:
<csscriptdict import="import"> <script type="text/javascript" src="../GeneratedItems/CSScriptLib.js"></script> </csscriptdict> Have you tried talking to Adobe they are quite helpful. |
|
|||
|
Hi Memoire,
When I make a site, I usually setup the folders before hand. So I might have a folder for images, pages and CSS for example. Then when I make a CSS page (extension .css), I would click, "save as" then find the css folder and click save. As I'm not familiar with the program you're using I can't address this per-say, but if you make each page and save it to the folder you want... you should be able to hand code your links accordingly. There are times, especially when adding images that you need to physically move them to the folder you want. Otherwise the path will point to your system instead of an image folder you have setup. I would suggest, trying to save each file as intended... CSS in css folder, etc. If you can't for some reason, copy and paste. As several posts have mentioned, be sure to save CSS pages as .css How this helps. Drummin |
|
||||
|
Hi Drummin.
Yes you basically stated what I already do. The problem is the CSScriptLib.js file that Golive generates is sent to a fixed location on my HD automatically - I wanted to change this default to the website folder of the site I am working on. As I mentioned the route is: ../HD/users/preferences/golive/scripts/CSScriptLib.js. I usually get this file and put it in a 'generated-items' folder within the site folder I am working on, which would be loaded to the server. In the code I point to this folder: <link href="http://www.mysite.com/generated-items/CSScriptLib.js. " rel="stylesheet" type="text/css"> This is all fine. The problem comes when I save the html file it automatically reverts the link back to: <link href="../HD/users/preferences/golive/scripts/CSScriptLib.js. " rel="stylesheet" type="text/css"> What I want to do is stop Golive doing that.
__________________
Thanks for your reply Cheers Steven http://stevenredhead.com "Life is not measured by the number of breaths we take...but by the moments that take our breath away." |
|
||||
|
[quote]I always use a relative path and I've never seen the problem you're having, not that I use their JavaScript any more. [/quote
Would be interested in what you do as a replacement for JavaScript?
__________________
Thanks for your reply Cheers Steven http://stevenredhead.com "Life is not measured by the number of breaths we take...but by the moments that take our breath away." |
|
|||
|
I'm confused!
When you are talking about the file CSScriptLib.js is that the JavaScript library that GoLive auto creates and should be automatically creating with in the current project tree? Quote:
Have you create a GoLive site project, or are you loading and editing the files outside of GoLive's project management? If the latter then try creating a site project and moving all your files into it. Have you tried the GoLive forum at http://www.adobe.com/support/forums/main.html Quote:
|
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
|
WebProWorld |
Advertise |
Contact Us |
About |
Forum Rules |
MVP's |
Archive |
Newsletter Archive |
Top |
WebProNews
WebProWorld is an iEntry, Inc. ® site - © 2009 All Rights Reserved Privacy Policy and Legal iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509 |