|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I have heard that with if you have a server that doesnt support CGI etc you can use javascript to embed a JS file into a html document which is written on another server through cgi giving you on the fly html pages on a basic free server.
I think it has something to do with document.write but im not to sure about it all could some one shed some light in the subject. Just to clarify i want to write a JS file to be linked to a HTML document and content to be printed onto the page. Then i would be able to use CGI from a different server to write news etc directly from the web ![]() And.... I have seen some websites that have changed the colour of the scrolling bar in IE, i was just wondering if that was done in JS if so how cos i cant see a way to do it, then again i only have a basic knowledge of JS and can only just turn scroll bars off javascript opened windows . Thanx in advance.. <html> <body> <embed src="http://www.ultimawin2k.f2s.com/assets/atirez.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="480" height="100"> </embed> </body> </html> ------------------ : bazstard@yahoo.com : : [Insert witty comment] : [This message has been edited by Atirez (edited November 20, 2000).] |
|
#2
|
|||
|
|||
|
OK and how do you turn HTML on in this forum???
------------------ : bazstard@yahoo.com : : [Insert witty comment] : |
|
#3
|
|||
|
|||
|
Quick answers: I don't think including js files has anything to do with CGI. You can't turn on HTML in this forum - it's up to the moderator (but I could be wrong on both).
Long answer: For colouring the scrollbars, the following examples only work in IE5.5 (maybe NS6 - I haven't got it yet). Using CSS:<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">code:</font><HR><pre> BODY{ SCROLLBAR-FACE-COLOR: vColor SCROLLBAR-ARROW-COLOR: vColor SCROLLBAR-SHADOW-COLOR: vColor SCROLLBAR-DARKSHADOW-COLOR: vColor SCROLLBAR-3DLIGHT-COLOR: vColor SCROLLBAR-HIGHLIGHT-COLOR: vColor SCROLLBAR-TRACK-COLOR: vColor } [/code] Using javascript:<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">code:</font><HR><pre> object.style.scrollbarBaseColor = vColor; object.style.scrollbarArrowColor = vColor; object.style.scrollbarDarkShadowColor = vColor; object.style.scrollbar3dLightColor = vColor; [/code] *where vColor is a color name or an RGB value.* I'm not sure those are all the possibilities (there are probably more options for JavaScript), but they should get you started. ____________________ Argh why no preview? [This message has been edited by stardotstar (edited November 21, 2000).] |
|
#4
|
|||
|
|||
|
Thanx for the help on the scroll bars.
But the CGI JS bit, what i am trying to do is use CGI on another server too write a JS file which can then be used on another server which doesnt use CGI. ie the cgi script writes a JS file as follows: <!-- document.write("--any text here--"); //--> which can then be placed into the code of my html document with <script language="JavaScript" src="blah.JS"></script> which should then show the text ---any text here-- I was trying to do this so i could have something like newspro working on a non cgi server compatible website. For all those free hosts. |
![]() |
| Viewing: Dev Shed Forums > Web Design > HTML Programming > A little question |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|