Recent Topics

1 Jun 29, 2006 19:54    

Is there a way to implement some javascript into a skin.

I tried to do it, well it kinda worked, but the whole skin layout dissapeared, colours as well.

I just added <script> blabalbla </script> to it.

What can be the right way to do it?

2 Jun 29, 2006 22:57

The whole skin disapeared :O

Make sure you are not adding the html within a php tag....

And

<script language="javascript" type="text/javascript">
// your code
</script>


Is the correct way of doing it, as there are many different languages that scripts could be.

Hope this helps.

3 Jun 29, 2006 23:08

w3.org wrote:

language = cdata [CI]
Deprecated. This attribute specifies the scripting language of the contents of this element. Its value is an identifier for the language, but since these identifiers are not standard, this attribute has been deprecated in favor of type.

¥

4 Jun 29, 2006 23:17

Thanks for that ¥åßßå ;)

So yeh, a valid javascript script tag looks like:

<script type="text/javascript">
// your code
</script>


Form is loading...