View Full Version : Link from...?
taylowa
Jan-19-2007, 03:05 PM
1. Is there anyway to link from the CSS, JavaScript, or Header/Body from somewhere else? I'm thinking if I use a CSS on my personal website, and want to only have to change it in one place, is there a way to do this?
2. Also, if I make a page that just has the nav <li>'s in it, then I could link to it. I know using PHP I can link to other pages, didn't know if you could do that here.
3. And, I know you can link in the <head> of a webpage to .js and a .css file, would it work here?
Thanks for all the information.
Pupator
Jan-19-2007, 06:27 PM
1. Is there anyway to link from the CSS, JavaScript, or Header/Body from somewhere else? I'm thinking if I use a CSS on my personal website, and want to only have to change it in one place, is there a way to do this?
Sure - just use FireBug to find the name of your customized style sheet on Smugmug and link to it in your html/php docs on your other site. I don't believe you can do it the opposite way, but as long as you don't mind making the CSS changes in the smugmug interface you will still only have to edit it in one place.
2. Also, if I make a page that just has the nav <li>'s in it, then I could link to it. I know using PHP I can link to other pages, didn't know if you could do that here.
I'm not sure what you're asking here. Say a bit more.
3. And, I know you can link in the <head> of a webpage to .js and a .css file, would it work here?
I've never tried, so I'm not sure. But you can try, find out, and let us know!
taylowa
Jan-19-2007, 08:00 PM
Thanks for the reply...
I don't know what FireBug is, but to let you know I created an .css file and have it on my webserver and linked to it form the head tag using:
<link rel="stylesheet" type="text/css" href="WEB_ADDRESS_TO_CSS_FILE">
Problem with this is that on both my webpage and in smugmug I have to leave one block of CSS code in my style are on the local page, or the css box in smugmug. I don't really understand why this is, but it is.
I've also been able to link to my javascript scripts from a file on my website using a .js file. I linked to it also from the head tag with:
>script language="javascript" src="<A href="WEB_ADDRESS_OF_JS_PAGE"></script">
With both of them I used the entire http:// address.
So, I answered my #1 and #3 questions. Now, #2 I don't know about. I know in dynamic coding, like PHP, you can type an include statement that will grab another page and bring it's code into the current page. That is what I'm trying to do.
The reason for this is so that when I update my webpage's menu, then my smugmug menu will update also.
Thanks.
Sure - just use FireBug to find the name of your customized style sheet on Smugmug and link to it in your html/php docs on your other site. I don't believe you can do it the opposite way, but as long as you don't mind making the CSS changes in the smugmug interface you will still only have to edit it in one place.
I'm not sure what you're asking here. Say a bit more.
I've never tried, so I'm not sure. But you can try, find out, and let us know!
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.