Javascript Question
5 posters
Page 1 of 1
Javascript Question
I wanted to post a javascript code on my forum in a post, is there a way to enable JS?
Re: Javascript Question
it depends what kind of code it is.
some java will only work in templates or html pages.
what is the code?
some java will only work in templates or html pages.
what is the code?
kirk- Forumaster
- Posts : 11037
Reputation : 653
Language : English,Vulcan,Klingon, Romulan,& Gorn
Re: Javascript Question
- Code:
<script type="text/javascript" src="http://www.ubuntu.com/files/countdown/display2.js"></script>
Re: Javascript Question
The countdown is over... Ubuntu 9.10 is available
so... there's no need for the countdown script.
You can use an image link
BBCode
Html (with "re-size image" option)
so... there's no need for the countdown script.
You can use an image link
BBCode
- Code:
[url=http://www.ubuntu.com/][img]http://www.ubuntu.com/files/countdown/910/countdown-9.10-2/00.png[/img][/url]
Html (with "re-size image" option)
- Code:
<a href="http://www.ubuntu.com/"><img src="http://www.ubuntu.com/files/countdown/910/countdown-9.10-2/00.png" alt="Ubuntu 9.10 Is Available Now!" border="0" height="150" width="180"></a>
Last edited by RoNo on March 14th 2010, 2:33 am; edited 1 time in total
Re: Javascript Question
lol? You could practice how to do it with this...
Create an Html page with *the script below
Use an Iframe to display the page on an Html enabled forum
Create an Html page with *the script below
- Code:
<script type="text/javascript">
var d = new Date();
dom = d.getDate();
month = d.getMonth();
year = d.getYear();
if (year < 2000) year = year - 100;
else year = year - 2000;
if (year == 9 && month == 9)
days = 29 - dom;
else
days = 0;
if (days < 0) days = 0;
if (days < 10) days = '0' + days.toString();
var base = 'http://www.ubuntu.com/files/countdown/910/countdown-9.10-2/';
document.write('<a href="http://www.ubuntu.com/"><img id="countdownimage" src="'+base+days+'.png" width="180" height="150" border="0" alt="Ubuntu 9.10 - Coming soon" style="padding-top:2px;background-color:transparent"></a>');
// document.write('<a href="http://www.ubuntu.com/"><img id="ubuntucountdownimage" src="'+base+'here.png" width="180" height="150" border="0" alt="Ubuntu 9.10 is here"></a>');
//
</script>
Use an Iframe to display the page on an Html enabled forum
- Code:
<iframe frameborder="0" width="180" height="152" src="http://Your Html Page Adress.htm" marginheight="0" marginwidth="0" scrolling="no" allowtransparency="yes" name=yourscript"></iframe>
Re: Javascript Question
if i make an html page how can i make it so that people on my forum can view it? will i have to make a link in a topic?
Re: Javascript Question
If you want members to see the content of the page...
Use an Iframe (as I mentioned above)
If you want members to click a link & go to the page...
Post/Display a link to it like this
Use an Iframe (as I mentioned above)
If you want members to click a link & go to the page...
Post/Display a link to it like this
- Code:
<a href="Your Page Address.htm">Your Link Title</a>
Since the issue appears to be resolved this topic is closed. LockedRoNo |
Similar topics
» JavaScript question
» Javascript- More then 1 javascript code
» Javascript on homepage question. ( Solved )
» Question about Rainbow Username JavaScript
» Skin change Question (actually a CSS question please)
» Javascript- More then 1 javascript code
» Javascript on homepage question. ( Solved )
» Question about Rainbow Username JavaScript
» Skin change Question (actually a CSS question please)
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum