Useful HTML content

Go down

Useful HTML content

Post by skiv71 on Mon Jun 02, 2014 10:17 pm

Hello again Smile

If you've had a look at the graphical layout included with the BMS Link project there's some HTML content at the top left.

I've used this to define a 'style' and some 'javascript', which is then used within the graphical view.

You can do the same to create all sorts of HTML content.

Javascript

tog_ctrl(id) - you can use this function within your server side scripts to toggle the visibility of your pop up controls.

<script type='text/javascript'>
<!--
function tog_ctrl(id) {
var e = document.getElementById(id);
if(e.style.display == 'block')
e.style.display = 'none';
else
e.style.display = 'block';
}
//-->
</script>

Style

Here, i define a class called 'label', which i then use to more easily to render the room names.

<style>
.label {
display: table-cell;
width:90px;
height:16px;
border:1px;
background-color:#F2F2F2;
font-size:11px;
text-align: center;
vertical-align: middle;
border: 1px solid black;
}
</style>
avatar
skiv71
Admin

Posts : 161
Join date : 2014-04-25
Age : 46
Location : United Kingdom

View user profile http://bmslink.co.uk:8180 [guest:guest]

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum