need HTML help plese ..

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Andy
    Confirmed User
    • Jan 2001
    • 460

    #1

    need HTML help plese ..

    hi there,
    I'venot posted for a long time and now I am asking for some help .. I am a bitch I know ..
    well but anyways .. in case anyone know

    I need to "highlight" the same word everywhere on the page .. just make it bold or other color or something like that ... is there any style set trick or something ...
    Submit Your Movie Galleries Trade Movie Traffic: 43559081
  • SicChild
    Confirmed User
    • Mar 2003
    • 365

    #2
    You cannot do that with HTML/css.

    Comment

    • thediablo
      Confirmed User
      • Aug 2003
      • 630

      #3
      ?
      PHP Code:
      <style>
       .boldtext { font-weight: bold; }
      </style>
      
      <font class="boldtext">SAME TEXT</font> 
      
      like that?

      Webdesign, Custom Wordpress Designs, Programming... you name it.
      ICQ: 19730496

      Comment

      • SicChild
        Confirmed User
        • Mar 2003
        • 365

        #4
        PHP Code:
        function highlight(){
          $numargs = func_num_args();
        
          if ($numargs < 1) { echo "Error in function highlight(): No arguments passed to function"; }
          $string = func_get_arg(0);
        
          if($numargs >= 2){ $keyword = func_get_arg(1); }else{ $keyword = $string; }
          if($keyword hahahaha "") { $keyword = $string; }
        
          if($numargs >= 3){ $b = func_get_arg(2); }else{ $b = "yellow"; }
          if($numargs >= 4){ $f = func_get_arg(3); }else{ $f = "black"; }
        
          $string = preg_replace('/('.$keyword.')/i', "<span style=\"color: $f; background-color: $b;\">$1</span>", $string);
        
          return $string;
        } 
        
        Examples for above code:
        $phrase = "This is a test";
        $search = "T";
        $test = highlight($phrase);
        $test1 = highlight($phrase,$search);
        $test2 = highlight($phrase,$search,"green");
        $test3 = highlight($phrase,$search,"#000000","rgb(255,255,2 55)");

        Comment

        • Andy
          Confirmed User
          • Jan 2001
          • 460

          #5
          thnx SicChild,
          I know how to do that in PHP .. just was wondering if it is possible in pure html/css coding ...
          Submit Your Movie Galleries Trade Movie Traffic: 43559081

          Comment

          • queer
            Confirmed User
            • Apr 2003
            • 671

            #6
            Didnt he mean HTML/JS and not serverside?
            FREE GALLERY RETURN TRAFFIC
            New better system for all TGP owners! Use your own sponsor codes!
            Traffic in return for listing quality galleries, RATIO 1:12 !

            Comment

            • Andy
              Confirmed User
              • Jan 2001
              • 460

              #7
              yep I did mean client side ..
              Submit Your Movie Galleries Trade Movie Traffic: 43559081

              Comment

              • SicChild
                Confirmed User
                • Mar 2003
                • 365

                #8
                There may be a j.a.v.a.s.c.r.i.p.t solution to this. Want to ICQ me?

                Comment

                Working...