This template provides basic, customizable css styled buttons (here matched to the deucebeta:lighty-blue skin - but adjust to suit your implementation!)
History
| Version | Date | Author | Description |
| 1.1 | 03/09/2009 | neels | Shiny new css styling for more buttonlike behaviour |
| 1.0 | 20/08/2009 | neels | First published template version |
For all the examples on this page, the code is shown before the working example. The code is shown with the syntax extension, and looks like this:
PageButton()
This means that the actual code on the page should be enclosed in a Dekiscript block. If you want to copy the code from this page, then use the same procedure as described in steps 2-4 above.
| Name | Type | Default | Description |
| url | url | required | enter the url you wish the button to go to here |
| title | str? | url | The text to show in the button for the link |
For instance:
PageButton('http://news.bbc.co.uk','BBC News')
will produce the following:

and when hovered

<html>
<head>
<style type="text/css">"
span#center
{
text-align:center;
}
ul#navlist
{
width: 308px;
\width: 310px;
w\idth: 308px;
padding: 0px;
border: 1px solid #808080;
border-top: 0px;
margin: 0px;
font: bold 2em helvetica,verdana,arial,sans-serif;
background: #808080;
text-align:center;
margin-left:auto;
margin-right:auto;
}
ul#navlist li
{
list-style: none;
margin: 0px;
border: 0px;
border-top: 1px solid #808080;
}
ul#navlist li a
{
display: block;
width: 272px;
\width: 308px;
w\idth: 272px;
padding: 4px 8px 4px 8px;
border: 0px;
border-left: 20px solid #ccc;
background: #dbe2f2;
text-decoration: none;
text-align: left;
}
ul#navlist li a:link { color: #666677; }
div#navcontainer li a:visited { color: #666677; }
ul#navlist li a:hover
{
border-color: #ccc;
color: #ffffff;
background: #737373;
}
"</style>
</head>
<body>
<span id="center">
<div id="navcontainer">
<ul id="navlist">
var url = $0 ?? $uri ?? '';
if(#url != 0) {
var title = $1 ?? $title ?? url;
<li id="active"> web.link(url, title);
</li>
}
</ul>
</div>
</span>
</body>
</html>
Here is an example of a set of buttons on the main page of our intranet site to aid navigation. I used a table for layout (old-school I know!). I have also used a customized version of neilw 'Hide Page Elements' template to tidy up the appearance of the deucebeta:lighty-blue skin.
| File | Version | Size | Modified | |
|---|---|---|---|---|
| ||||
| ||||
| ||||
Copyright © 2011 MindTouch, Inc. Powered by