The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Possible to link HTML changes?

3 posters

Go down

Possible to link HTML changes? Empty Possible to link HTML changes?

Post by RazielBach May 27th 2015, 5:31 am

Hey there.

I had a question on something that would be more of a quality of life change on my part. For updates to my forum, I have a section on an HTML page saying when the update was, and I also edited the template of the main page to say when the update was. 

I was curious if there was a way to link it so that when I update that section on the HTML page the same section on the template will updated by itself.

Any help would be appreciated, thanks.
avatar
RazielBach
Forumember

Posts : 25
Reputation : 1
Language : English

http://eriviyn.forumotion.com

Back to top Go down

Possible to link HTML changes? Empty Re: Possible to link HTML changes?

Post by Sir. Mayo May 31st 2015, 7:25 pm

The only way i know of would be to use the <iframe> </iframe> tags.

for example

Code:
 <iframe src="YOUR HTML PAGE" width="XX" height="XX">

Replace YOUR HTML PAGE with the url of the page

then replace the XX with the size for the height and width you would like
Sir. Mayo
Sir. Mayo
Forumember

Male Posts : 978
Reputation : 90
Language : English, Some french.
Location : you can also reach me on snoonet's irc server. I idle in #Techsupport Username is Vault108

http://sir-mayo.forumotion.com/

Back to top Go down

Possible to link HTML changes? Empty Re: Possible to link HTML changes?

Post by Mike June 2nd 2015, 8:03 pm

If you use Javascript Page Management you can create a similar effect. Create a file in the Javascript Management and have it active on all pages. Youll need to copy the link for it. 

In your Javascript page only include the following: 

Code:
document.write('YOUR TEXT HERE');

Wherever you'll want this update message to show, for example on a custom page or at the bottom of your forum, add the code: 

Code:
<script type="text/javascript" src="YOUR LINK"></script>

and then whenever you change the message in your main javscript management file it will update on all the pages that have that script included.
Mike
Mike
Hyperactive

Male Posts : 4255
Reputation : 471
Language : English, HTML, CSS
Location : Loveland, Colorado

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum