/    Sign up×
Community /Pin to ProfileBookmark

A whole lot of links

Is there a way to set links in a css so that I only have to type one or two words?

Basically my links are like the following:

[CODE]\blahblahblahsomefolderoverhearaaahhhhhnotdoneyetfinally.html[/CODE]

I’d like to eliminate having to type out all that stuff especially because once I finish building this it will have hundreds of links that will all have to be moved.

Help please.

to post a comment
CSS

10 Comments(s)

Copy linkTweet thisAlerts:
@JavaKid93Aug 15.2006 — well i dont know if yours is the same but when i link my pages i only use the TEXT.html part not the whole My Documents and stuff like that...

try it
Copy linkTweet thisAlerts:
@JavaKid93Aug 15.2006 — ooooh i think i know what your talking about...
Copy linkTweet thisAlerts:
@RGLauthorAug 15.2006 — I would just use the file.html if they were all in the same folder but in this case I can only have the index.html accessable by those using it not all the other files.
Copy linkTweet thisAlerts:
@The_Little_GuyAug 15.2006 — if you start the link with a [B]/[/B] it will start from the root directory.

[SIZE=1]/animal/feline/cat/house_cat.html[/SIZE]

if you start the link with text it will start in the current directory of the current viewing file.

[SIZE=1]cat/house_cat.html[/SIZE]

if you start with [B]../[/B] than the link will start in the previous directory of the current viewing file.

[SIZE=1]../feline/cat/house_cat.html[/SIZE]
Copy linkTweet thisAlerts:
@RGLauthorAug 15.2006 — I understand all that. My question is can this be done some how in my style sheet to set that beginning code?
Copy linkTweet thisAlerts:
@The_Little_GuyAug 15.2006 — No

Style sheets are for style only

The only thing you can do to a link with a style sheet is give the link a certain style.
Copy linkTweet thisAlerts:
@RGLauthorAug 15.2006 — I wish you wouldn't have said that. Oh well. Thanks for taking the time to let me know.
Copy linkTweet thisAlerts:
@ewallaceAug 15.2006 — You must be buidling a really big site to have files buried that deep. If you are then it's really that much work.

You said something about having to move all the links. You should be able to move the site without changing the links if you are using relative addresses like "The little guy" described. If you're using links that point to place on your computer (like your C drive or whatnot) than you are making lots of extra work for yourself (and you'll have lots of typing to boot).

I couldn't tell from what you said which way you were doing it.

-E
Copy linkTweet thisAlerts:
@RGLauthorAug 15.2006 — It will be pretty big when done. A couple hundred pages. I know there may be better ways to do what I'm doing but with what I have to work with this seems to be my best option.
Copy linkTweet thisAlerts:
@FireCracker37Aug 16.2006 — If it is really going to be a couple hundred pages, you might want to consider using a database, and templating it all. Imagine if one little sidebar has to be changed, just how much work you are going to have to do.

I know, I know, for some reason you say the word PHP and people start running for the hills, but to be perfectly honest, if you want to stay current, you are best off learning the technology that you have avaliable to you.
×

Success!

Help @RGL spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.2,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...