Author |
Topic |
D3mon
Senior Member
United Kingdom
1685 Posts |
|
Nathan
Help Moderator
USA
7664 Posts |
|
D3mon
Senior Member
United Kingdom
1685 Posts |
Posted - 22 August 2002 : 16:01:07
|
Ah nice one. I hadn't noticed that. That's the danger of assumption! I'll make the necessary changes in a bit... Done. |
Snitz 'Speedball' : Site Integration Mod : Friendly Registration Mod "In war, the victorious strategist only seeks battle after the victory has been won" |
Edited by - D3mon on 22 August 2002 16:39:31 |
|
|
@tomic
Senior Member
USA
1790 Posts |
Posted - 22 August 2002 : 17:53:04
|
Any chance of combining this with the color picker? I can do it if you want. I already familiarized myself a bit with what you were doing. But adding these all together would make one nifty color config page.
@tomic |
SportsBettingAcumen.com |
|
|
D3mon
Senior Member
United Kingdom
1685 Posts |
Posted - 22 August 2002 : 18:00:13
|
I had thought that it made a nice little 'one-file change' MOD to the forums (and hope that it might make it into the full version) as it is. I'm sure I/we can make a seperate 'Turbo' version with the color picker window included... |
Snitz 'Speedball' : Site Integration Mod : Friendly Registration Mod "In war, the victorious strategist only seeks battle after the victory has been won" |
|
|
@tomic
Senior Member
USA
1790 Posts |
Posted - 22 August 2002 : 18:38:33
|
You know, wouldn't a function make it easier to write out each rown of this page? There would only need to be a couple functions. Then a person could slip in added functionality by making changes to the functions that writes the row.
@tomic |
SportsBettingAcumen.com |
|
|
D3mon
Senior Member
United Kingdom
1685 Posts |
Posted - 22 August 2002 : 18:51:10
|
Ah yes it might. I hadn't though that far ahead. I gotta hit the sack now but I'll have a look tomorrow morning... |
Snitz 'Speedball' : Site Integration Mod : Friendly Registration Mod "In war, the victorious strategist only seeks battle after the victory has been won" |
Edited by - D3mon on 22 August 2002 18:53:01 |
|
|
@tomic
Senior Member
USA
1790 Posts |
Posted - 22 August 2002 : 18:58:17
|
Sort of like this:
Function FontSize(strSize,strSizeName,strFormName)
Response.Write "<tr valign=""middle"">" & vbNewLine & _ " <td bgcolor=""" & strPopUpTableColor & """ align=""right""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><strong>" & strSizeName & ":</strong> </font></td>" & vbNewLine & _ " <td bgcolor=""" & strPopUpTableColor & """>" & vbNewLine & _ " <select name=""strSize"" onchange=""" & strFormName & ".setAttribute('size', " & strSize & ".value );"">" & vbNewLine & _ " <option value=""1""" & chkSelect(strSize,1) & ">1 (8 pt)</option>" & vbNewLine & _ " <option value=""2""" & chkSelect(strSize,2) & ">2 (10 pt)</option>" & vbNewLine & _ " <option value=""3""" & chkSelect(strSize,3) & ">3 (12 pt)</option>" & vbNewLine & _ " <option value=""4""" & chkSelect(strSize,4) & ">4 (14 pt)</option>" & vbNewLine & _ " <option value=""5""" & chkSelect(strSize,5) & ">5 (18 pt)</option>" & vbNewLine & _ " <option value=""6""" & chkSelect(strSize,6) & ">6 (24 pt)</option>" & vbNewLine & _ " <option value=""7""" & chkSelect(strSize,7) & ">7 (36 pt)</option>" & vbNewLine & _ " </select>" & vbNewLine & _ " <a href=""JavaScript:openWindow3('pop_config_help.asp?mode=colors#fontsize')"">" & getCurrentIcon(strIconSmileQuestion,"","") & "</a></td>" & vbNewLine & _ " <td align=""center"" bgcolor=""" & strPopUpTableColor & """> <font id="" & strFormName & "" size:""" & strSize & """;"">Aa</font> </td>" & vbNewLine & _ "</tr>" & vbNewLine & _ End Function
And call the function thusly:
Call FontSize(strSize,strSizeName,strFormName)
Do that for Color rows, text decoration rows and the font Name and Size and you would have an easier to manage page.
@tomic |
SportsBettingAcumen.com |
Edited by - @tomic on 22 August 2002 19:02:53 |
|
|
D3mon
Senior Member
United Kingdom
1685 Posts |
Posted - 23 August 2002 : 05:36:30
|
However I try to do it, I always end up with a problem in that I have a variable that references a variable name, that references a value. In your example, chkSelect(strSize,1) will check the value of strSize to see if it is "1" and not strSize's referenced value. Confused? I was.
|
Snitz 'Speedball' : Site Integration Mod : Friendly Registration Mod "In war, the victorious strategist only seeks battle after the victory has been won" |
|
|
sy
Average Member
United Kingdom
638 Posts |
Posted - 23 August 2002 : 05:56:16
|
Looks cool!
|
The pessimist complains about the wind; the optimist expects it to change; the realist adjusts the sails
|
Edited by - sy on 23 August 2002 13:43:05 |
|
|
Azaniah
Senior Member
United Kingdom
1004 Posts |
Posted - 23 August 2002 : 09:28:59
|
D3Mon, did you see the files I posted in the other topic? All dynamic now... |
Eagles fly!, but weasels don't get sucked into jet engines. |
|
|
D3mon
Senior Member
United Kingdom
1685 Posts |
Posted - 23 August 2002 : 11:58:48
|
Azaniah, your code had just the bit of Javascript I needed to solve my Javascript problem. I made the resulting files a new topic. |
Snitz 'Speedball' : Site Integration Mod : Friendly Registration Mod "In war, the victorious strategist only seeks battle after the victory has been won" |
|
|
Azaniah
Senior Member
United Kingdom
1004 Posts |
Posted - 23 August 2002 : 12:20:16
|
Great,
So what's it do now? I'm still lost lol |
Eagles fly!, but weasels don't get sucked into jet engines. |
|
|
D3mon
Senior Member
United Kingdom
1685 Posts |
Posted - 23 August 2002 : 12:29:52
|
When the window pops up and you select a colour, it automagically updates the textbox value and the 'sample' cell, then closes the popup. Sorted. |
Snitz 'Speedball' : Site Integration Mod : Friendly Registration Mod "In war, the victorious strategist only seeks battle after the victory has been won" |
Edited by - D3mon on 23 August 2002 12:30:22 |
|
|
Azaniah
Senior Member
United Kingdom
1004 Posts |
Posted - 23 August 2002 : 12:43:49
|
Isn't that what my files were doing?
I thought you had an additional trick up ya sleeves..
And the First Cell Color was a pain.. |
Eagles fly!, but weasels don't get sucked into jet engines. |
Edited by - Azaniah on 23 August 2002 12:44:12 |
|
|
D3mon
Senior Member
United Kingdom
1685 Posts |
Posted - 23 August 2002 : 12:55:22
|
Ah, I didn't get round to testing your files, just had a quick shuftee at the Javascript to see where I was going wrong.
Forum Cell color was tricky but I think it's an effect worth having. |
Snitz 'Speedball' : Site Integration Mod : Friendly Registration Mod "In war, the victorious strategist only seeks battle after the victory has been won" |
|
|
Topic |
|