Results 1 to 3 of 3

Thread: Store a stylesheet to a string ?

  1. #1

    Thread Starter
    Frenzied Member Jmacp's Avatar
    Join Date
    Jul 2003
    Location
    UK
    Posts
    1,959

    Store a stylesheet to a string ?

    How can i set a stylesheet to a string ?

    $shtml = "text below"

    and the stylesheet being,

    HTML Code:
    <style type="text/css">
    .mygen { Created using MyGen 2.5 - www.mygen.co.uk }
    
    .mygen { Background Properties }
    table, tr, td { background-color:transparent; border:none; border-width:0;}
    body {
    	background-color:AAAAAA;
    	border-color:442222;
    	border-width:3px ;
    	border-style: solid;
    	scrollbar-face-color:000000;
    	scrollbar-highlight-color:000000;
    	scrollbar-3dlight-color:000000;
    	scrollbar-shadow-color:000000;
    	scrollbar-darkshadow-color:000000;
    	scrollbar-arrow-color:000000;
    	scrollbar-track-color:000000;
    	 }
    
    .mygen { Table Properties }
    table table { border: 0px }
    table table table table{border:0px}
    table table table {
    	border-style:outset;
    	border-width:2px;
    	border-color:99BB77;
    	background-color:transparent;
    	   		}
    
    table table table td {
    	background-color:BBDD99;
    	filter:alpha(opacity=60); -moz-opacity:0.60; opacity:0.60; -khtml-opacity:0.60; }
    table table table table td {filter:none;}
    
    .mygen { Text Properties }
    table, tr, td, li, p, div { font-family:courier new; color:000000; font-size:14px;     } 
    
    .mygen { Miscellaneous Properties }
    a:hover img { filter:Wave(Add=0,  Freq=5,  LightStrength=20,  Phase=220,  Strength=10);}
    body { cursor:crosshair;}
    a:hover { cursor:crosshair;}
    </style>
    
        }

  2. #2
    <?="Moderator"?> john tindell's Avatar
    Join Date
    Jan 2002
    Location
    Brighton, UK
    Posts
    1,099

    Re: Store a stylesheet to a string ?

    try this
    PHP Code:
    $string = <<<EOF
    lots and
    lots of useless information in here
    ¬!"£$%^&*()_+<>?:@{}
    EOF;
    print 
    $string

  3. #3
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    Re: Store a stylesheet to a string ?

    You can also have the style sheet in a separate file and load it into the string using file_get_contents()
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width