|
|
#3 (permalink) | |
|
The Coolness
Excelling Contributor
Joined in May 2003
Lives in Sandpoint, Idaho
Hosted on Dime5
862 posts
Gave thanks: 0
Thanked 0 times
|
Quote:
__________________
Bronze Reseller Pass36 |
|
|
|
|
|
|
#4 (permalink) |
|
Surpass Fan
Comfy Contributor
Joined in Jan 2004
Lives in drakeshangout.com/forum
Hosted on PASS3
187 posts
Gave thanks: 0
Thanked 0 times
|
Basically what Im trying to accomplish is this.
Frontpage has updates paths which I dont want so I was wondering if javascript could accomplish it for me just in a different way by loading a picture based on the directory the page is in. Code:
<img border="0" src="/main.gif" width="146" height="146"> Code:
<img border="0" src="../main.gif" width="146" height="146"> I did make this but it only loads a picture based on the title of the page and everyone of my pages have different titles so im lost Code:
<script language="JavaScript">
var title = document.title;
document.write ("<img src='" + title + "'.ext>");
</script>
|
|
|
|
|
|
#6 (permalink) |
|
minor deity
Super #1
Joined in Apr 2004
Lives in Georgia
Hosted on XEON
7,395 posts
Gave thanks: 28
Thanked 94 times
|
With PHP you can write the HTML dynamically, which allows you to change the title of the page, and content based on location.
I've stopped using frontpage, so I'm not certain what it is you are exactly trying to accomplish. John PS - this is my 600th post!
__________________
Proud to be a Surmunity Mod! XEON Make a fundamental difference! My Sites: Curious about Brewing Beer? Join the community! >>>>> Some Change is GOOD! Keep your paycheck! Support the Fair Tax Get into an Art museum Victorian London It's your brain -ON WEB - mybrainhost.com (under development) What SHOULD Government do? Much Less than it Does! |
|
|
|
|
|
#7 (permalink) |
|
The Coolness
Excelling Contributor
Joined in May 2003
Lives in Sandpoint, Idaho
Hosted on Dime5
862 posts
Gave thanks: 0
Thanked 0 times
|
FrontPage gives me hives! :pills:
I'll keep thinking about it, but... can you specify the image location? Even to the point of http://www.domain.com/images/img.gif? FrontPage makes things very easy until you want to do something more than the engineers think you should, then it says that you really don't need to do that anyway. Hey Big John, that sound like liberal politicians to you too? :tongue1:
__________________
Bronze Reseller Pass36 |
|
|
|
|
|
#9 (permalink) |
|
Surpass Fan
Comfy Contributor
Joined in Jan 2004
Lives in drakeshangout.com/forum
Hosted on PASS3
187 posts
Gave thanks: 0
Thanked 0 times
|
On every single page? I think not.
I want this image to load on the games section http://drakeshangout.com/images2/short23.gif Flash Toons section http://drakeshangout.com/humor/image...toonslogo2.gif etc. Is there any code that can say hmmmmm this page is in the games section so ill load that picture. |
|
|
|