Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Page 1 of 2 12 LastLast
Results 1 to 15 of 18
  1. #1
    Regular Coder
    Join Date
    Aug 2002
    Posts
    264
    Thanks
    0
    Thanked 0 Times in 0 Posts

    New to Style Sheets

    Is there any way to make a style-sheet file, and then on the page just put like stylesheet.css? Because if I want to change a link I'd have to do it on every page
    Please visit http://www.thickandthinpizza.com and tell me what you think.

  • #2
    Senior Coder
    Join Date
    Aug 2002
    Location
    UK
    Posts
    2,789
    Thanks
    2
    Thanked 14 Times in 14 Posts
    In the HEAD section of all the documents that are going to use the style sheet put

    <LINK href="style.css" rel=stylesheet type=text/css>

    Where "style.css" is the path and name of your style sheet

  • #3
    Regular Coder
    Join Date
    Aug 2002
    Posts
    264
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Actually I didnt mean that, I mean my links, if I had to put another link on, I would have to go to each page to change it, is there another way to do this, sort of like the style sheet, but for like a table with links
    Please visit http://www.thickandthinpizza.com and tell me what you think.

  • #4
    Senior Coder Nightfire's Avatar
    Join Date
    Jun 2002
    Posts
    4,265
    Thanks
    6
    Thanked 48 Times in 48 Posts
    You could put your menu into a js file and then have

    document.write('<a href="link1">Link1</a><br><a href="link2">Link2</a>');

    then where ever you want the menu, put

    <script src="path/to/menu.js" language="javascript" type="text/javascript"></script>

    Unlesss you have serverside language available, then you could do it easier and better ways.

  • #5
    Regular Coder
    Join Date
    Jul 2002
    Location
    Raleigh, NC
    Posts
    484
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You could also use include files which requires at least minimal knowledge of a server side language.

    Here is the basic usage of includes using ASP:
    http://www.learnasp.com/learn/inc.asp
    -WebMark Art
    Programming is 80% thinking and 20% spelling

  • #6
    Regular Coder
    Join Date
    Aug 2002
    Posts
    264
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Originally posted by Nightfire
    You could put your menu into a js file and then have

    document.write('<a href="link1">Link1</a><br><a href="link2">Link2</a>');

    then where ever you want the menu, put

    <script src="path/to/menu.js" language="javascript" type="text/javascript"></script>

    Unlesss you have serverside language available, then you could do it easier and better ways.
    Thanks thats what I was looking for!
    Please visit http://www.thickandthinpizza.com and tell me what you think.

  • #7
    Regular Coder
    Join Date
    Aug 2002
    Posts
    264
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Can anyone help me with mine, like write the script out, here are the links


    Code:
    <img src="vcsource1.gif" width=90>
    
    <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
     codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"
     WIDTH=90 HEIGHT=102>
    <PARAM NAME=movie VALUE="tab.swf?exbackground=808080&makenavfield0=Home&makenavurl0=main.html&makenavfield1=Fake Pictures&makenavurl1=fpics.html&makenavfield2=Improvments&makenavurl2=improvments.html&makenavfield3=Vice City Story&makenavurl3=story.html&makenavfield4=Banners&makenavurl4=banners.html">
    <PARAM NAME=loop VALUE=false>
    <PARAM NAME=menu VALUE=false>
    <PARAM NAME=quality VALUE=high>
    <PARAM NAME=scale VALUE=noborder>
    <PARAM NAME=salign VALUE=LT>
    <PARAM NAME=wmode VALUE=transparent>
    <PARAM NAME=bgcolor VALUE=#000000>
    
    <EMBED src="tab.swf?exbackground=808080&makenavfield0=Home&makenavurl0=main.html&makenavfield1=Fake Pictures&makenavurl1=fpics.html&makenavfield2=Improvments&makenavurl2=improvments.html&makenavfield3=Vice City Story&makenavurl3=story.html" loop=false menu=false quality=high scale=noborder salign=LT wmode=transparent bgcolor=#808080 WIDTH=120 HEIGHT=156 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED> 
    
    </OBJECT>
    Please visit http://www.thickandthinpizza.com and tell me what you think.

  • #8
    Senior Coder Nightfire's Avatar
    Join Date
    Jun 2002
    Posts
    4,265
    Thanks
    6
    Thanked 48 Times in 48 Posts
    Last edited by Nightfire; 10-15-2002 at 09:25 PM.

  • #9
    Regular Coder
    Join Date
    Aug 2002
    Posts
    264
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks, do I put <script language="javascript">.....</script> there?
    Please visit http://www.thickandthinpizza.com and tell me what you think.

  • #10
    Senior Coder Nightfire's Avatar
    Join Date
    Jun 2002
    Posts
    4,265
    Thanks
    6
    Thanked 48 Times in 48 Posts
    <script src="path/to/menu.js" language="javascript" type="text/javascript"></script>

    On the html page where you want the menu to show.

  • #11
    Regular Coder
    Join Date
    Aug 2002
    Posts
    264
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I know but on the links.js part
    Please visit http://www.thickandthinpizza.com and tell me what you think.

  • #12
    Senior Coder Nightfire's Avatar
    Join Date
    Jun 2002
    Posts
    4,265
    Thanks
    6
    Thanked 48 Times in 48 Posts
    No, leave it without <script></script> in.

  • #13
    Regular Coder
    Join Date
    Aug 2002
    Posts
    264
    Thanks
    0
    Thanked 0 Times in 0 Posts
    whats wrong with this?


    document.write('<img src="vcsource1.gif" width=90>

    <OBJECT classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000"
    codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"
    WIDTH=90 HEIGHT=102>
    <PARAM NAME=movie VALUE="tab.swf?exbackground=808080&makenavfield0=Home&makenavurl0=main.html&makenavfield1=Fake Pictures&makenavurl1=fpics.html&makenavfield2=Improvments&makenavurl2=improvments.html&makenavfield3 =Vice City Story&makenavurl3=story.html&makenavfield4=Banners&makenavurl4=banners.html">
    <PARAM NAME=loop VALUE=false>
    <PARAM NAME=menu VALUE=false>
    <PARAM NAME=quality VALUE=high>
    <PARAM NAME=scale VALUE=noborder>
    <PARAM NAME=salign VALUE=LT>
    <PARAM NAME=wmode VALUE=transparent>
    <PARAM NAME=bgcolor VALUE=#000000>

    <EMBED src="tab.swf?exbackground=808080&makenavfield0=Home&makenavurl0=main.html&makenavfield1=Fake Pictures&makenavurl1=fpics.html&makenavfield2=Improvments&makenavurl2=improvments.html&makenavfield3 =Vice City Story&makenavurl3=story.html" loop=false menu=false quality=high scale=noborder salign=LT wmode=transparent bgcolor=#808080 WIDTH=120 HEIGHT=156 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED>

    </OBJECT>


    <br>
    <img src="multi.gif" width=90 valign="top">

    <OBJECT classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000"
    codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"
    WIDTH=90 HEIGHT=172>
    <PARAM NAME=movie VALUE="tab.swf?
    exbackground=808080&makenavfield0=Screen-shots&makenavurl0=screenshots.html&makenavfield1=Characters&makenavurl1=gangs.html&makenavfield2=Mov ies/Sounds&makenavurl2=moviessounds.html&makenavfield3=Vice City Map&makenavurl3=map.html&makenavfield4=Vehicles&makenavurl4=cars.html&makenavfield5=Weapons&makenavu rl5=weapons.html&makenavfield6=Missions&makenavurl6=missions.html&makenavfield7=Radio&makenavurl7=ra dio.html&makenavfield8=Articles&makenavurl8=articles.html">
    <PARAM NAME=loop VALUE=false>
    <PARAM NAME=menu VALUE=false>
    <PARAM NAME=quality VALUE=high>
    <PARAM NAME=scale VALUE=noborder>
    <PARAM NAME=salign VALUE=LT>
    <PARAM NAME=wmode VALUE=transparent>
    <PARAM NAME=bgcolor VALUE=#000000>

    <EMBED src="tab.swf? exbackground=808080&makenavfield0=Screen-shots&makenavurl0=screenshots.html&makenavfield1=Characters&makenavurl1=gangs.html&makenavfield2=Mov ies/Sounds&makenavurl2=moviessounds.html&makenavfield3=Vice City Map&makenavurl3=map.html&makenavfield4=Vehicles&makenavurl4=cars.html&makenavfield5=Weapons&makenavu rl5=weapons.html&makenavfield6=Missions&makenavurl6=missions.html&makenavfield7=Radio&makenavurl7=ra dio.html" loop=false menu=false quality=high scale=noborder salign=LT wmode=transparent bgcolor=#808080 WIDTH=120 HEIGHT=208 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED>

    </OBJECT>



    <br><br>


    <img border="0" src="http://fastcounter.bcentral.com/fastcounter?3034489+6068985">');
    Please visit http://www.thickandthinpizza.com and tell me what you think.

  • #14
    Senior Coder Nightfire's Avatar
    Join Date
    Jun 2002
    Posts
    4,265
    Thanks
    6
    Thanked 48 Times in 48 Posts
    It all has to be on one line

  • #15
    Regular Coder
    Join Date
    Aug 2002
    Posts
    264
    Thanks
    0
    Thanked 0 Times in 0 Posts
    everything, can you give example
    Please visit http://www.thickandthinpizza.com and tell me what you think.


  •  
    Page 1 of 2 12 LastLast

    Posting Permissions

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