• Welcome to WebsiteBaker Community Forum. Please log in or sign up.
Welcome, Guest
News
Support WebsiteBaker
Your donations will help to:
PayPal
  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!
You can donate by clicking on the button below.

www.TheHost.co.za - hospitality business site

Started by StefanRSA, September 22, 2008, 02:52:31 PM  ( Read 12,549 times )

StefanRSA

Hallo Guys!

I am VERY proud to say... I am (almost) done with my first WB site!!!!
Please do me a favour and send comments...

I am 3 months new in PhP and MySql, so if you pick up any problems please be so kind to tell me about it and give a hand if you can! Please note that the link without the /wb,  link to their old(UGLY!) site at
www,the-host,net.....

WB ROCKS!!!! MY NEW SITE ADDRESS!!!!! -----------------> http://www.thehost.co.za/wb  :-D

    aldus

    Fine ... but there is an error in the "screen.css" in line 143:

    background: #FFFFFF url(<?php echo TEMPLATE_DIR;?>/images/headcut_14-over.gif) repeat;

    You can't place PHP-Code inside an external css file - will not be execute.
    And you are not in the need to this: keep in mind, that all paths inside the css are rellative
    to the css file, so in this case you can simple go like this:
    background: #FFFFFF url(images/headcut_14-over.gif) repeat;

    if there is a subfolder named "images" next to the css-file.

    Regards
    Aldus

      StefanRSA


      aldus

      Fine - nothing found yet
      And (!) imagefloooooooooooooooooow woup

      Regards
      Aldus

        Stefek

        Nicely baked.
        I like it.
        Very complex template.
        Looks professional!

        I see you love to design every single detail.  :-P

        Regards,
        Stefek

          StefanRSA

          Thanks Guys...

          I have a problem in my menu.... Its a combination of JS and CSS conflict... Its for the active page menu color...(?submenuheader=1)
          Don't have this problem if I go only CSS but I want the glide down effect of the menu...




            Stefek

            Quote from: StefanRSA on September 22, 2008, 03:43:04 PM... Its a combination of JS and CSS conflict...

            Please explain the exact problem.
            For me it look just fine. (FireFox 2 / Win XP)

            Regards,
            Stefek

              StefanRSA

              #7
              The ?submenuheader=1 and ?submenuheader=0 works with my CSS to display the active page on the menu and also if the submenu should expand or not. This is the only way I can get the SUBMENUHEADER to also have a dif color when any sumenu page is selected.

              The error shows in FF and IE in the background: Error: headers[expandedindex] is undefined
              Source File: http://www.thehost.co.za/wb/pages/screen-shots.php?submenuheader=1
              Line: 34

                Stefek

                Now I see.
                Something wrong with your JS.
                Can't help - sorry.

                I'm certain that sombody else will help you to fix this.

                Regards,
                Stefek

                  aldus

                  #9
                  As for a quick view: missing ";"
                  should be
                  for (var i=0; i<expandedindices.length; i++){
                   var
                  expandedindex=expandedindices[i]; //index of current expanded header index within array
                   
                  headers[expandedindex].style.backgroundColor='#00B8FF';
                   
                  headers[expandedindex].style.color='white';
                  }


                  to avoid some unexpected results you should testing the results, e.g.
                  for (var i=0; i<expandedindices.length; i++){
                   var
                  expandedindex=expandedindices[i]; //index of current expanded header index within array
                   
                  if (expandedindex) {
                     if (
                  headers[expandedindex]) {
                       
                  headers[expandedindex].style.backgroundColor='#00B8FF';
                       
                  headers[expandedindex].style.color='white';
                      }
                    }
                  }


                  sorry - untested yet ...

                  Regards
                  Aldus

                    StefanRSA

                    That Solved my Problem, Thanks Aldus!

                    Thanks for you as well Stefek!!!

                      \n\n