Versioner sammenlignet

Nøgle

  • Linjen blev tilføjet.
  • Denne linje blev fjernet.
  • Formatering blev ændret.
Indholdsfortegnelse

 Her Here are different Macros (bodies) that I have made, copied og changed. Find several good ones also at http://confluence.atlassian.com/display/DISC/Shared+User+Macros

...

google-analytics

Kodeblok
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-10804579-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })();
</script>

...

facebook-button

Exclude "&layout=button_count" to get more text beside the button

Kodeblok
<script language="JavaScript" type="text/javascript">// <![CDATA[
{
       document.write('<iframe src="http://www.facebook.com/plugins/like.php?href='+location.href+'&layout=button_count" frameborder="0" scrolling="no" width="100%" height="62px" allowtransparency="true" style="height: 62px; width: 100%;"></iframe>');
     }
// ]]></script>

me-image: Image lightbox with Confluence style

Images are resized on the fly, making it pretty slow

...

Kodeblok
<script type="text/javascript" src="/slimbox/js/jquery.js"></script>
<script type="text/javascript" src="/slimbox/js/slimbox2.js"></script>
<link rel="stylesheet" href="/slimbox/css/slimbox2.css" type="text/css" media="screen" />

me-image: Image lightbox with Slimbox2

This required the "Slimbox2 including" Macro

...

Kodeblok
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
<script type="text/javascript" src="/fancybox/fancybox/jquery.fancybox-1.3.4.pack.js"></script>
<script type="text/javascript" src="/fancybox/jquery.mousewheel-3.0.4.pack.js"></script>
<link rel="stylesheet" href="/fancybox/fancybox/jquery.fancybox-1.3.4.css" type="text/css" media="screen" />

...

make-top

Macroes to make a Top mark and references to itMake Top Anchor

Kodeblok
<A NAME="top">

go-top

Create Link to Top, requires the make-top macro

Kodeblok
<a href="#top">Gå til Top</a><br>

...

This is SAMPLE code for my presence, go to http://www.skype.com/intl/en-us/tell-a-friend/get-a-skype-button/Image Removed to create Your code

...