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 ]