TinyPortal

Development => Support => Topic started by: marinelife on September 11, 2006, 03:36:06 PM

Title: JavaScripts and articles
Post by: marinelife on September 11, 2006, 03:36:06 PM
Can JavaScripts be done in artcles, I have some blocks that are Javascripts that I want to make articles instead but the Javascript does not show, am I missing something
Title: Re: JavaScripts and articles
Post by: G6Cad on September 11, 2006, 03:49:02 PM
Not in an article, but you can create a html/scriptblock to show in the center of your forum
Title: Re: JavaScripts and articles
Post by: marinelife on September 11, 2006, 04:01:22 PM
That is what I have not but I was hoping to did it with articles, thanks for the answer
Title: Re: JavaScripts and articles
Post by: IchBin on September 11, 2006, 04:02:54 PM
You can put javascript/html into an article. The way I like to do it is to create the file in an html file and then include it with PHP.

include('/path/to/the/file.html');
Title: Re: JavaScripts and articles
Post by: marinelife on September 11, 2006, 06:36:38 PM
Ichbin thanks that worked, Can a scroll bar be made for an article for those with low resolution settings
Title: Re: JavaScripts and articles
Post by: IchBin on September 12, 2006, 02:30:19 AM
That probably depends on your content. You should be able to put everything in a div and set the scrolling option.
Title: Re: JavaScripts and articles
Post by: marinelife on September 12, 2006, 03:04:29 AM
Ok thanks I will play around with it some more