Gamingforce Interactive Forums
85239 35211

Go Back   Exploding Garrmondo Weiner Interactive Swiss Army Penis
Register FAQ GFWiki Community Donate Arcade ChocoJournal Calendar

Notices

Welcome to the Exploding Garrmondo Weiner Interactive Swiss Army Penis.
GFF is a community of gaming and music enthusiasts. We have a team of dedicated moderators, constant member-organized activities, and plenty of custom features, including our unique journal system. If this is your first visit, be sure to check out the FAQ or our GFWiki. You will have to register before you can post. Membership is completely free (and gets rid of the pesky advertisement unit underneath this message).


Gamingforce Choco Journal
Zergrinch's Journal

Zergrinch's Journal Statistics
View Zergrinch's profile
Entries 32 entries in total [view entry calendar]
Private 1 entries are private (3.13% of total)
Views 16851
Replies Zergrinch has made 260 comments [view stats]
Comments 213 comments (6.66 avg) [view stats]
Total Props 13 props given to Zergrinch [who be proppin?]
Buddies 20 buddies
Relation You are not Zergrinch's buddy.
What's New 0 new entries since your last visit.


Create New Journal EntryView All Entries [Viewing Single Entry]
Jan 20, 2011 - 04:17 AM
Messing around with Javascript and InnerHTML
I'm trying to make a simple webpage with a few hyperlinks. When you type in some text in a box and click a button, the links change to include whatever is typed. I thought I could do it with Javascript and innerHTML, but it does not seem to work.

Any recommendations?

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta content="en-ph" http-equiv="Content-Language">
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<SCRIPT language="JavaScript"> 
<!--hide from old browsers 
function readtext (form) {
    stocksymbol = document.stocks.Stock1.value;
    pse1url = "<a href='http://www.pse.com.ph/html/ListedCompanies/listedcompanyinfo.jsp?securitySymbol=" + stocksymbol + "' target='_blank'>";
    pse2url = "<a href='http://www.pse.com.ph/html/disclosure/disclosures.jsp?securitySymbol=" + stocksymbol + "' target='_blank'>";
    bloomberg1url = "<a href='http://investing.businessweek.com/research/stocks/snapshot/snapshot.asp?symbol=" + stocksymbol + ":PM' target='_blank'>";
    bloomberg2url = "<a href='http://investing.businessweek.com/research/stocks/financials/financials.asp?symbol=" + stocksymbol + ":PM' target='_blank'>";
    bloombergchart = "<param value='ticker=" + stocksymbol + ":PM' name='flashvars'/>";
    bloombergchart2 = "<embed width='620' height='600' type='application/x-shockwave-flash' allowscriptaccess='always' bgcolor='#ffffff' salign='T' wmode='opaque' quality='high' flashvars='ticker=" + stocksymbol + ":PM' src='http://www.bloomberg.com/swf/bw/chartbuilder/ChartBuilder.swf'/>";
    document.getElementById('ps1').innerHTML = pse1url;
    document.getElementById('ps2').innerHTML = pse2url;
    document.getElementById('bb1').innerHTML = bloomberg1url; 
    document.getElementById('bb2').innerHTML = bloomberg2url;
    document.getElementById('bbc').innerHTML = bloombergchart;
    document.getElementById('bbd').innerHTML = bloombergchart2;
}//-->
</SCRIPT>
<title>Quik-Bloomberg Charts</title>
</head>
<body style="margin: 5px">
<div style="border-style: solid; float: left; border-width:1px; padding:5px; background:#FFFFCC"><form name="stocks" action="#">
<span style="font-family: Verdana, Geneva, Tahoma, sans-serif; font-size: small">Symbol:</span>
<input name="Stock1" size="6" tabindex="1" style="font-size: x-small" onChange="javascript:this.value=this.value.toUpperCase();"> 
<input value="GO!" name="B5" style="font-size: x-small;font-family : Tahoma; width: 30px;" tabindex="2" type="button" onclick="readtext(this.form)"></form>
</div>
<SCRIPT language="JavaScript">
    document.write("<div style='float: right'><a href='http://www.pse.com.ph'><strong>Philippine Stock Exchange</strong></a></em><br>- ");
    document.write("<span id='ps1'><a href='http://www.pse.com.ph/html/ListedCompanies/listedcompanyinfo.jsp?securitySymbol=TEL' target='_blank'></span>Company Information</a><br>- ");
    document.write("<span id='ps2'><a href='http://www.pse.com.ph/html/disclosure/disclosures.jsp?securitySymbol=TEL' target='_blank'></span>Disclosures</a>"); 
    document.write("<br><br><em><strong>Bloomberg</strong></em><br>- ");
    document.write("<span id='bb1'><a href='http://investing.businessweek.com/research/stocks/snapshot/snapshot.asp?symbol=TEL:PM' target='_blank'></span>Snapshot</a><br>- ");
    document.write("<span id='bb2'><a href='http://investing.businessweek.com/research/stocks/financials/financials.asp?symbol=TEL:PM' target='_blank'></span>Financials</a></span><br><br></div>");
</script>
    </body>
</html>



Give Props For This Entry (Quality Entry) Edit this entry Delete this entry Comment on this entry (5 ejaculates)
[Create Response Entry]
[public entry #30 of 31]

Gamingforce Choco Journal
Zergrinch's Journal


All times are GMT -5. The time now is 05:03 AM.


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2024, vBulletin Solutions, Inc.