PDA

View Full Version : Need to center email link. Please help.


Giphsub
Sep-22-2007, 03:07 AM
I added an email link using the following encoded html code as described in the how to thread on emails:

******** type='text/javascript'><!--
var v2="8JXNAZ4WPKH6KW8CH";var v7=unescape("_%23%28%262/V%177%26%29_%27y%5B%2C%25");var v5=v2.length;var v1="";for(var v4=0;v4<v5;v4++){v1+=String.fromCharCode(v2.charCodeAt(v4) ^v7.charCodeAt(v4));}document.write('<a href="javascript:void(0)" onclick="window.location=\'mail\u0074o\u003a'+v1+'?subject= Smugmug'+'\'">'+'Email Me<\/a>');
//--></********<noscript><a href='http://w2.syronex.com/jmr/safemailto/#noscript'>Email Me (using spam protection)</a></noscript>

But it isn't centered. Can someone please help me? I don't how to center this. You can see it here:

http://giphsub.smugmug.com/

Allen
Sep-22-2007, 07:26 AM
I added an email link using the following encoded html code as described in the how to thread on emails:

******** type='text/javascript'><!--
var v2="8JXNAZ4WPKH6KW8CH";var v7=unescape("_%23%28%262/V%177%26%29_%27y%5B%2C%25");var v5=v2.length;var v1="";for(var v4=0;v4<v5;v4++){v1+=String.fromCharCode(v2.charCodeAt(v4) ^v7.charCodeAt(v4));}document.write('<a href="javascript:void(0)" onclick="window.location=\'mail\u0074o\u003a'+v1+'?subject= Smugmug'+'\'">'+'Email Me<\/a>');
//--></********<noscript><a href='http://w2.syronex.com/jmr/safemailto/#noscript'>Email Me (using spam protection)</a></noscript>

But it isn't centered. Can someone please help me? I don't how to center this. You can see it here:

http://giphsub.smugmug.com/ You could just a add center tag around it.

<center>
<script>type='text/javascript'><!-- ....
....
... ction)</a></noscript>
</center>

Giphsub
Sep-22-2007, 07:41 AM
hey, simple as that! Thanks Allen :thumb

But I actually don't like the look of it like that. I think I'd rather put it in my nav bar, but I'm not quite sure which parts of that html code above to put into the nav bar script... Is it even possible to use that code or do I need to go more simple and lose that protection?

Allen
Sep-22-2007, 08:03 AM
hey, simple as that! Thanks Allen :thumb

But I actually don't like the look of it like that. I think I'd rather put it in my nav bar, but I'm not quite sure which parts of that html code above to put into the nav bar script... Is it even possible to use that code or do I need to go more simple and lose that protection?
Try this for it in your nav.

<div id="navcontainer">
<ul>
<li><a href="http://giphsub.smugmug.com">Home</a></li>
<li><a href="http://giphsub.smugmug.com/galleries">Galleries</a></li>
<li><a href="http://giphsub.smugmug.com/gallery/3353925/1/187032216/Medium">About Me</a></li>
<li><a href="http://www.thewildpig.blogspot.com">My Blog</a></li>
<li><script type="text/javascript"><!--
var v2="8JXNAZ4WPKH6KW8CH";var v7=unescape("_%23%28%262/V%177%26%29_%27y%5B%2C%25");var v5=v2.length;var v1="";for(var v4=0;v4<v5;v4++){v1+=String.fromCharCode(v2.charCodeAt(v4) ^v7.charCodeAt(v4));}document.write('<a href="javascript:void(0)" onclick="window.location=\'mail\u0074o\u003a'+v1+'?subject= Smugmug'+'\'">'+'Email Me<\/a>');
//--></script><a href="javascript:void(0)" onclick="window.location='mailto:giphsub@gmail.com?subject= Smugmug'">Email Me</a><noscript><a href='http://w2.syronex.com/jmr/safemailto/#noscript'>Email Me (using spam protection)</a></noscript></li>
</ul>
</div>

Giphsub
Sep-22-2007, 09:12 PM
:clap Thanks Allen, perfect! Except that I have 2 "Email Me" buttons! Hehehe. Sorry to be a pain, but which part of this should I delete? If none, then how do I get rid of one of them??

<div id="navcontainer">
<ul>
<li><a href="http://giphsub.smugmug.com">Home</a></li>
<li><a href="http://giphsub.smugmug.com/galleries">Galleries</a></li>
<li><a href="http://giphsub.smugmug.com/gallery/3353925/1/187032216/Medium">About Me</a></li>
<li><a href="http://www.thewildpig.blogspot.com">My Blog</a></li>
<li>******** type="text/javascript"><!--
var v2="8JXNAZ4WPKH6KW8CH";var v7=unescape("_%23%28%262/V%177%26%29_%27y%5B%2C%25");var v5=v2.length;var v1="";for(var v4=0;v4<v5;v4++){v1+=String.fromCharCode(v2.charCodeAt(v4) ^v7.charCodeAt(v4));}document.write('<a href="javascript:void(0)" onclick="window.location=\'mail\u0074o\u003a'+v1+'?subject= Smugmug'+'\'">'+'Email Me<\/a>');
//--></********<a href="javascript:void(0)" onclick="window.location='mailto:giphsub@gmail.com?subject= Smugmug'">Email Me</a><noscript><a href='http://w2.syronex.com/jmr/safemailto/#noscript'>Email Me (using spam protection)</a></noscript></li>

</ul>
</div>

Allen
Sep-22-2007, 09:23 PM
:clap Thanks Allen, perfect! Except that I have 2 "Email Me" buttons! Hehehe. Sorry to be a pain, but which part of this should I delete? If none, then how do I get rid of one of them??

<div id="navcontainer">
<ul>
<li><a href="http://giphsub.smugmug.com">Home</a></li>
<li><a href="http://giphsub.smugmug.com/galleries">Galleries</a></li>
<li><a href="http://giphsub.smugmug.com/gallery/3353925/1/187032216/Medium">About Me</a></li>
<li><a href="http://www.thewildpig.blogspot.com">My Blog</a></li>
<li>******** type="text/javascript"><!--
var v2="8JXNAZ4WPKH6KW8CH";var v7=unescape("_%23%28%262/V%177%26%29_%27y%5B%2C%25");var v5=v2.length;var v1="";for(var v4=0;v4<v5;v4++){v1+=String.fromCharCode(v2.charCodeAt(v4) ^v7.charCodeAt(v4));}document.write('<a href="javascript:void(0)" onclick="window.location=\'mail\u0074o\u003a'+v1+'?subject= Smugmug'+'\'">'+'Email Me<\/a>');
//--></********<a href="javascript:void(0)" onclick="window.location='mailto:giphsub@gmail.com?subject= Smugmug'">Email Me</a><noscript><a href='http://w2.syronex.com/jmr/safemailto/#noscript'>Email Me (using spam protection)</a></noscript></li>

</ul>
</div> You have two of the bold.

<li><script type="text/javascript"><!--
var v2="8JXNAZ4WPKH6KW8CH";var v7=unescape("_%23%28%262/V%177%26%29_%27y%5B%2C%25");var v5=v2.length;var v1="";for(var v4=0;v4<v5;v4++){v1+=String.fromCharCode(v2.charCodeAt(v4) ^v7.charCodeAt(v4));}document.write('<a href="javascript:void(0)" onclick="window.location=\'mail\u0074o\u003a'+v1+'?subject= Smugmug'+'\'">'+'Email Me<\/a>');
//--></script>

<a href="javascript:void(0)" onclick="window.location='mailto:giphsub@gmail.com?subject= Smugmug'">Email Me</a>
<a href="javascript:void(0)" onclick="window.location='mailto:giphsub@gmail.com?subject= Smugmug'">Email Me</a>


<noscript><a href='http://w2.syronex.com/jmr/safemailto/#noscript'>Email Me (using spam protection)</a></noscript>
</li>

</ul>
</div>

Giphsub
Sep-22-2007, 11:28 PM
:thumb :clap Thanks heaps Allen.