Page 1 of 1
one for the mods or a one of u geeks
Posted: Sun Feb 27, 2011 11:01 pm
by gasspark
have a good website and would like to add a script for UHM so can divert them who would like to have a go them selfs but alas not good with code, so a script I can copy and paste would be good, if its been posted before just say were
thanks
John
gasspark
Re: one for the mods or a one of u geeks
Posted: Sun Feb 27, 2011 11:05 pm
by wrinx
When you say "script" do you mean a simple link, possibly using a clickable picture?
wrinx
Re: one for the mods or a one of u geeks
Posted: Sun Feb 27, 2011 11:09 pm
by gasspark
was more thinking full script with link would like the logo
Re: one for the mods or a one of u geeks
Posted: Sun Feb 27, 2011 11:10 pm
by gasspark
wrinx wrote:When you say "script" do you mean a simple link, possibly using a clickable picture?
wrinx
the clickable pic would that be the UHM logo if so yes
Re: one for the mods or a one of u geeks
Posted: Sun Feb 27, 2011 11:12 pm
by thescruff
If you open the page and copy the http:www code you can put the url code as I posted, ad it should open as as a clickable link
Re: one for the mods or a one of u geeks
Posted: Sun Feb 27, 2011 11:14 pm
by Colour Republic
Code: Select all
<a href="http://www.ultimatehandyman.co.uk"><img src="http://www.ultimatehandyman.co.uk/forum1/styles/subsilver2/imageset/uhm_logo.gif" alt="Visit UltimateHandyman's website"/></a>
Of course you can change the alt text to whatever you like
Re: one for the mods or a one of u geeks
Posted: Sun Feb 27, 2011 11:17 pm
by gasspark
Colour exactly what I wanted thanks
Re: one for the mods or a one of u geeks
Posted: Sun Feb 27, 2011 11:24 pm
by Colour Republic
The code i've given you uses the logo from this website off their servers so everytime somebody opens tyour page on your website it uses a tiny amount of UHM bandwidth.
You could save a copy of the logo on to your own server to stop that happening. You would then need to change that part of the code to
assuming you put the file in a folder called 'images' on your server.
I'm sure UHM would be greatful of the link and the use on the logo but it's always best to ask first
Re: one for the mods or a one of u geeks
Posted: Sun Feb 27, 2011 11:24 pm
by wrinx
Picture is very easy to do but without knowing the folder name and locations it's hard to give you code to copy and paste...and if you're not very good with code writing those bits in might be hard.
If you save the picture from the header here to a file, place the file name where I've put *path to image file*
Using "hotspot" picture:
<img src="file:*path to image file*/uhm_logo.gif" width="250" height="125" usemap="#Map" border="0">
<map name="Map">
<area shape="rect" coords="1,0,250,124" href="
http://www.ultimatehandyman.co.uk" target="_blank">
</map>
Just text
<a href="
http://www.ultimatehandyman.co.uk" target="_blank">Ultimate Handyman
</a>
Edit: Yes, ask permission to use images first :)
wrinx
Re: one for the mods or a one of u geeks
Posted: Sun Feb 27, 2011 11:28 pm
by Colour Republic
ohh Wrinx makes a good point
add
to the code so that when people click on it, it opens a new tab/page that why your website is still running as well as UHM in their browser and you haven't diverted traffic away from your website
Re: one for the mods or a one of u geeks
Posted: Mon Feb 28, 2011 10:17 am
by gasspark
Ok thanks I understand and will add the script from wrinx