.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Raging Tiger- Save $9.00
The Star and the Crescent- Save $9.00

   







Go Back   .com.unity Forums > Shrapnel Community > Space Empires: IV & V

Reply
 
Thread Tools Display Modes
  #1  
Old July 7th, 2004, 09:00 AM
dogscoff's Avatar

dogscoff dogscoff is offline
General
 
Join Date: Mar 2001
Location: UK
Posts: 4,245
Thanks: 0
Thanked 0 Times in 0 Posts
dogscoff is on a distinguished road
Default Re: Story Writers Please Read.

Quote:
Thank you Dogscoff. I wasn't too sure on uploading yours as i didn't want to take traffic from your site. I'll Maybe post a piece with little snippets of your fiction and then a big link at the bottom of the page
Maybe you could rip the code from the quote-o-matic and use it as a banner..? That would be cool.

:EDIT: I think the following code ought to do it. Probably. More or less. Ish.
code:
include the following statement INSIDE you body tag: onLoad="quote_from_dogscoff();" - not sure what to do if you already use your onLoad.

Then put the following just after the body tag:

<script language="JavaScript" type="text/javascript" SRC="http://www.dogscoff.co.uk/extern.js"></script>
<script language="JavaScript" type="text/javascript" SRC="http://www.dogscoff.co.uk/fiction/ge....js"></script>

function quote_from_dogscoff()
{ // grabs a random file from dogscoff's quote-o-matic and dumps it to the frame with the ID "quote-o-matic".
var quote_frame=getElementById("quote-o-matic");
var quote_count=Get_var('sci_fi_quote_count',0);
var stem="http://www.dogscoff.co.uk/fiction/quotes/fic";
var file_extension=".htm";
quote_frame.location.href=stem+getindex(quote_coun t)+file_extension;
}



Now create a frame in your page (an Iframe might be easiest) and give it the ID "quote-o-matic". Frame must be exactly 100 pixels high and at least a few hundred wide.


Add the following lines to your stylesheet (although I dont mind you changing the details & image to suit your own page) :

body.quote{background-image: url(http://www.dogscoff.co.uk/fiction/im...iquoteleft.jpg); font-family: Tahoma, sans-serif; background-color: #ffffff; background-attachment: fixed; background-repeat: no-repeat; background-position: top left; font-size: 80%; color: #0A0A0A;}

p.quote{font-style: italic;}
a.quote{color: #56D9E1;}
strong{font-size: 120%; color: #0A0A0A; font-style: normal;}

#quotetext {left: 100px; position: absolute; font-style: italic;}



[ July 07, 2004, 08:29: Message edited by: dogscoff ]
Reply With Quote
  #2  
Old July 7th, 2004, 06:27 PM

Raging Deadstar Raging Deadstar is offline
Brigadier General
 
Join Date: Aug 2002
Location: Carlisle, UK
Posts: 1,826
Thanks: 0
Thanked 0 Times in 0 Posts
Raging Deadstar is on a distinguished road
Default Re: Story Writers Please Read.

You broke the thread!
Reply With Quote
Reply

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 12:03 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.