Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CSS Link

Status
Not open for further replies.

Leroytrolley

Vendor
Sep 6, 2002
7
GB
I've got a slight problem.

I'm working for a hospital in Kent, and I'm designing some noticeboard announcements.

Part of this means that I have to design pages (over 100) without any links on the page. Once I've submitted the pages I can then add the link that I need to put on. At the moment I have to load 100 pages into Dreamweaver and then add my link on the page (copy and Pasting for and hour)

I have to cut the time this takes down!!

Is there any thing you guys can think of that can help me?

I'm guesing that I could somehow make a CSS that I can change once I have submitted the non linked pages.

Can this be done. I've no experience with CSS, so please be gentle.

I hope this is understandable!!

Leroy
 
Leroytrolley,

I'm not sure if this is what you're looking for, but why don't you put your links in a file and include your file on each HTML page:

Contents of "links.txt":
Code:
<a href=&quot;[URL unfurl="true"]www.foo.com/bar.html&quot;>LINK[/URL] 1</a>
<a href=&quot;[URL unfurl="true"]www.foo.com/bar2.html&quot;>LINK[/URL] 2</a>
<a href=&quot;[URL unfurl="true"]www.foo.com/bar3.html&quot;>LINK[/URL] 3</a>

Put this line in your HTML files where you want your links to appear:
Code:
<!--#include file=&quot;links.txt&quot;-->

Hope that helps.
-Ron

We all play from the same deck of cards, it's how we play the hand we are dealt which makes us who we are. -Me

murof siht edisni kcuts m'I - PLEH
 
Oops, should be:

Code:
<a href=&quot;[URL unfurl="true"]www.foo.com/bar.html&quot;>LINK[/URL] 1</a>
<br />
Code:
<a href=&quot;[URL unfurl="true"]www.foo.com/bar2.html&quot;>LINK[/URL] 2</a>
<br />
Code:
<a href=&quot;[URL unfurl="true"]www.foo.com/bar3.html&quot;>LINK[/URL] 3</a>
<br />

But you get the idea.
-Ron

We all play from the same deck of cards, it's how we play the hand we are dealt which makes us who we are. -Me

murof siht edisni kcuts m'I - PLEH
 
Thanks for your help, but I'm not allowed to use that script. Its a real pain in the neck. Basically the boards are trying to stop any links on the messageboard, but I have been in touch with the admin people and they said that they cannot help, but they will turn a blind eye (as I'm working for a hospital) if I can beat their system. So thats how I came up with the way of posting and then changing the pages. But changing the pages to include acpoule of links is taking my ages to do.

I've tried inserting Flash, but it doesnt allow any code except HTML (apart from hyperlinks).

Leroy
 
I'm struggling a bit with this.

You're writing some posts that are going to appear on an online bulletin board like Tek-Tips.

These pages do not allow you to post HTML, or at least they do not let you post <a> tags...

...but (apparently) they let you include an <a> tag when you edit a posting.

How is this posting and editing done? Though an HTML interface like Tek-Tips? If so, I think you'll struggle to automate the process without some fairly complex programming to spoof the HTML forms into thinking they're dealing with a browser.

-- Chris Hunt
 
Are you allowed to have javascript in your submitted pages? If so, maybe you could include an onClick event in a span that loads the page instead of using a link. Or maybe even have a script that dynamically inserts the links.

Otherwise, ChrisHunt's suggestion of using a script to automate what you're already doing would be your best bet.

FYI, CSS doesn't deal with the content of the page (ie. links), only the layout, so it wouldn't help you.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top