Can I add a (code) script that I'd like to use as a footer for each page on my website?
If so, can you tell me how to do it?
Thanks,
Sue
Can I add a (code) script that I'd like to use as a footer for each page on my website?
If so, can you tell me how to do it?
Thanks,
Sue
Sue, easier to explain if you advise what result you are after or a reference to the code itself.
There is no simple approach but for a single instance, you would create a Placeholder shape and then add the code to its body.
Unfortunately, cloning this across all pages will probably not work if a HMTL ID reference is used; it needs to be a Class reference.
Acorn
Acorn - installed Xara software: Cloud+/Pro+ and most others back through time (to CC's Artworks). Contact for technical remediation/consultancy for your web designs.
When we provide assistance, your responses are valuable as they benefit the community. TG Nuggets you might like. Report faults: Xara Cloud+/Pro+/Magix Legacy; Xara KB & Chat
It's a copyright script that adds the year each year without having to go into each one and change it.
Here it is: <p>Copyright © 2016-
<SCRIPT LANGUAGE="JavaScript">
<!--- Hide from old browsers
document.write(y0);
// end hiding --->
</SCRIPT>
Acorn - installed Xara software: Cloud+/Pro+ and most others back through time (to CC's Artworks). Contact for technical remediation/consultancy for your web designs.
When we provide assistance, your responses are valuable as they benefit the community. TG Nuggets you might like. Report faults: Xara Cloud+/Pro+/Magix Legacy; Xara KB & Chat
I think this is all I have and it works
Acorn - installed Xara software: Cloud+/Pro+ and most others back through time (to CC's Artworks). Contact for technical remediation/consultancy for your web designs.
When we provide assistance, your responses are valuable as they benefit the community. TG Nuggets you might like. Report faults: Xara Cloud+/Pro+/Magix Legacy; Xara KB & Chat
Sorry... maybe this is it..hope this helps you, help me
<div id="footer"><SCRIPT LANGUAGE="JavaScript">
<!--
//Script created by Ronny Drappier, http://sipreal.com
//Visit http://javascriptkit.com for this script
today=new Date();
y0=today.getFullYear();
// end hiding --->
</SCRIPT>
<center>Copyright © 2008-<SCRIPT LANGUAGE="JavaScript">
<!--- Hide from old browsers
document.write(y0);
// end hiding --->
</SCRIPT>
I also add a no right click script...
I think this is it...
</div><script language=JavaScript>
<!--
//Disable right mouse click Script
//By Maximus (maximus@nsimail.com) w/ mods by DynamicDrive
//For full source code, visit http://www.dynamicdrive.com
var message="Function Disabled!";
///////////////////////////////////
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}
function clickNS4(e){
if (document.layers||document.getElementById&&!docume nt.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}
if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}
document.oncontextmenu=new Function("alert(message);return false")
// -->
</script>
Last edited by SueB; 03 April 2017 at 07:06 PM. Reason: added other script I would like to add
A better approach might be along the lines of https://www.talkgraphics.com/showthr...in-placeholder.
Create a text box with text "Copyright © 2016"
To its Placeholder HTML code(body), insert:
This can be repeated on all pages as a footer-locked textbox. Yopu can alter the font, size and colour of the textbox to round it all off.<span>Copyright © 2016-<script>new Date().getFullYear()>2006&&document.write(new Date().getFullYear());</script></span>
Don't bother with disabling right clicks; that way lies madness.
Acorn
Acorn - installed Xara software: Cloud+/Pro+ and most others back through time (to CC's Artworks). Contact for technical remediation/consultancy for your web designs.
When we provide assistance, your responses are valuable as they benefit the community. TG Nuggets you might like. Report faults: Xara Cloud+/Pro+/Magix Legacy; Xara KB & Chat
I'll have to learn the "placeholder" stuff. New to this.
Can you tell me more details how to do it? Read the linked post..but still unsure. I'm guessing what you mean "footer-locked textbox" is just that, a textbox that is looked and duplicated on all pages?
I know there is controversy about the right click...I'd rather try to disable it for those that don't know any better. Artwork is important to try to save from being stolen. Watermarks detract from the prettiness of it but I do that also. Most of my audience is not computer savvy.
Any way to disable the right click that you care to share?
A placeholder is usually just a simple rectangle positioned where you want something to appear and in this case designated as a Footer.
Select the rectangle, then select Placeholder from the Web Properties fly out on the Infobar.
Click Body and paste the script.
Gary W. Priester
Mr. Moderator Emeritus Dude, Sir
gwpriester.com | eyetricks-3d-stereograms.com | eyeTricks on Facebook | eyeTricks on YouTube | eyeTricks on Instagram
Bookmarks