The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Javascript Question

5 posters

Go down

Solved Javascript Question

Post by finnysgirl March 12th 2010, 1:35 am

I wanted to post a javascript code on my forum in a post, is there a way to enable JS?
avatar
finnysgirl
Forumember

Posts : 82
Reputation : 0
Language : English

http://bewhoyouwanttob.forumotion.com

Back to top Go down

Solved Re: Javascript Question

Post by finnysgirl March 12th 2010, 7:39 pm

[bump]
avatar
finnysgirl
Forumember

Posts : 82
Reputation : 0
Language : English

http://bewhoyouwanttob.forumotion.com

Back to top Go down

Solved Re: Javascript Question

Post by MrMario March 12th 2010, 10:16 pm

You have HTML on?
MrMario
MrMario
Helper
Helper

Male Posts : 22186
Reputation : 1839
Language : test

Back to top Go down

Solved Re: Javascript Question

Post by finnysgirl March 12th 2010, 11:23 pm

yeah.
avatar
finnysgirl
Forumember

Posts : 82
Reputation : 0
Language : English

http://bewhoyouwanttob.forumotion.com

Back to top Go down

Solved Re: Javascript Question

Post by Cool-processor March 13th 2010, 11:28 am

BBcode?
Cool-processor
Cool-processor
Forumember

Male Posts : 724
Reputation : -55
Language : HTML | CSS/3 | JQuery
Location : To my own coding world

http://www.creative-labz.com

Back to top Go down

Solved Re: Javascript Question

Post by kirk March 13th 2010, 2:59 pm

it depends what kind of code it is.
some java will only work in templates or html pages.

what is the code?
kirk
kirk
Forumaster

Male Posts : 11037
Reputation : 653
Language : English,Vulcan,Klingon, Romulan,& Gorn

Back to top Go down

Solved Re: Javascript Question

Post by finnysgirl March 13th 2010, 11:25 pm

Code:
<script type="text/javascript" src="http://www.ubuntu.com/files/countdown/display2.js"></script>
avatar
finnysgirl
Forumember

Posts : 82
Reputation : 0
Language : English

http://bewhoyouwanttob.forumotion.com

Back to top Go down

Solved Re: Javascript Question

Post by RoNo March 14th 2010, 2:31 am

The countdown is over... Ubuntu 9.10 is available
so... there's no need for the countdown script.

You can use an image link
Javascript Question 00

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
RoNo
RoNo
Active Poster

Male Posts : 1270
Reputation : 135
Language : English
Location : Laguna Beach, California

http://bf2mercenaries.forumotion.com/

Back to top Go down

Solved Re: Javascript Question

Post by finnysgirl March 14th 2010, 2:33 am

alright then...thanks!!! :3 i just wanted to know for future reference lol
avatar
finnysgirl
Forumember

Posts : 82
Reputation : 0
Language : English

http://bewhoyouwanttob.forumotion.com

Back to top Go down

Solved Re: Javascript Question

Post by RoNo March 14th 2010, 2:49 am

lol? You could practice how to do it with this...

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>
RoNo
RoNo
Active Poster

Male Posts : 1270
Reputation : 135
Language : English
Location : Laguna Beach, California

http://bf2mercenaries.forumotion.com/

Back to top Go down

Solved Re: Javascript Question

Post by finnysgirl March 14th 2010, 3:01 am

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?
avatar
finnysgirl
Forumember

Posts : 82
Reputation : 0
Language : English

http://bewhoyouwanttob.forumotion.com

Back to top Go down

Solved Re: Javascript Question

Post by RoNo March 14th 2010, 3:21 am

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
Code:
<a href="Your Page Address.htm">Your Link Title</a>

Since the issue appears to be resolved
this topic is closed. Locked
Javascript Question 28s7x9jRoNo
RoNo
RoNo
Active Poster

Male Posts : 1270
Reputation : 135
Language : English
Location : Laguna Beach, California

http://bf2mercenaries.forumotion.com/

Back to top Go down

Back to top

- Similar topics

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