![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Can you assign an url to a tag? E.g. you have a table with some rows and in each row a link. And if you want to change the url you only have to change the id. I give here an url: http://www.janfaerber.com/alt.html/assign-url2tag.php |
#3
| |||
| |||
|
|
While the city slept, Jan Faerber (faerber73 (AT) yahoo (DOT) com) feverishly typed... Can you assign an url to a tag? E.g. you have a table with some rows and in each row a link. And if you want to change the url you only have to change the id. I give here an url: http://www.janfaerber.com/alt.html/assign-url2tag.php It sounds like you are wanting to use CSS for this. CSS is for presentation, not content. As it appears you have php-enabled webspace, then why not try a php approach? Something like the following; ?php $link1 = "http://www.microsoft.com"; $link2 = "http://www.google.com"; $link3 = "http://www.ebay.co.uk"; ? table tr><td><a href="<?=$link1 ?>"><?=$link1 ?></a></td></tr tr><td><a href="<?=$link2 ?>"><?=$link2 ?></a></td></tr tr><td><a href="<?=$link3 ?>"><?=$link3 ?></a></td></tr /table ... Note: This is straight off the top of my head, and hasn't been tested. You can also store the links in a separate php include file, then include it into each file where you need it. Then you will only need to change links in the include file. |
#4
| |||
| |||
|
|
?php $link1 = "http://www.microsoft.com"; $link2 = "http://www.google.com"; $link3 = "http://www.ebay.co.uk"; ? table tr><td><a href="<?=$link1 ?>"><?=$link1 ?></a></td></tr tr><td><a href="<?=$link2 ?>"><?=$link2 ?></a></td></tr tr><td><a href="<?=$link3 ?>"><?=$link3 ?></a></td></tr /table |
#5
| |||
| |||
|
|
Can you assign an url to a tag? And if you want to change the url you only have to change the id. |

#6
| |||
| |||
|
|
CSS is out, it does not and probably never will support this, because it has nothing to do with presentation. [...] |
#7
| |||
| |||
|
|
Mitja wrote: CSS is out, it does not and probably never will support this, because it has nothing to do with presentation. I'm sure you meant to say it has everything to do with presentation. :-) |
![]() |
| Thread Tools | |
| Display Modes | |
| |