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.
Results 1 to 8 of 8
  1. #1
    New to the CF scene
    Join Date
    May 2013
    Posts
    4
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Removing a part of Java Script

    Hi everyone,

    I am an amateur web content manager with basic understanding of HTML and a bit of experience in Dreamweaver.

    I have downloaded a template for a website.
    I have installed it over here: http://navstar.co.za/test/

    The main image rotates (3 images in the slider).
    This is fine. I want this.
    But when it changes - there is some text that "flies" in from the right on each image.
    If possible, I need to know how to remove it.
    I have opened all the JS files in Dreamweaver, but I can't even find the text of the "fly-in" anywhere in any of the files provided.

    I know this is probably a bit of a long shot as you guys can't see the JS files.
    I would appreciate any suggestions though.

    Thank you
    Rain

  • #2
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    25,020
    Thanks
    75
    Thanked 4,323 Times in 4,289 Posts
    ???? How can you say you can't find that text when it is sitting right there in the main file?
    Code:
    		<li>
    			<img src="images/img1.jpg" alt="">
    			<div class="banner">
    				<span class="title"><span class="color2">We Have</span><span class="color1">Propositions</span><span>For Everybody</span></span>
    				<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit sed do eiusmod tempor.</p>
    				<a href="#" class="button1">Read More</a>
    			</div>
    		</li>
    And easy answer is just to remove all of that stuff.

    Leave the <div class="banner">, but have it be empty:
    Code:
    		<li>
    			<img src="images/img1.jpg" alt="">
    			<div class="banner">
    			</div>
    		</li>
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.

  • Users who have thanked Old Pedant for this post:

    rainmaster (05-08-2013)

  • #3
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    25,020
    Thanks
    75
    Thanked 4,323 Times in 4,289 Posts
    Quote Originally Posted by rainmaster View Post
    I know this is probably a bit of a long shot as you guys can't see the JS files.
    ??? Why would you think we can't see the JS files?

    We can just use VIEW==>>SOURCE to see the main source code and then from there just click on the JS file names to see them. In Chrome and Firefox, at least.
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.

  • #4
    New to the CF scene
    Join Date
    May 2013
    Posts
    4
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Thank you Old Pendant.
    Yeah - like I said, I don't know too much of this stuff, but that did the trick.

    Funny how I never thought of looking in the index file. I just assumed the java script stuff would be in the JS files.

    Anyways - I am learning. Thanks again.

    RainMaster

  • #5
    Senior Coder Dormilich's Avatar
    Join Date
    Jan 2010
    Location
    Behind the Wall
    Posts
    3,133
    Thanks
    12
    Thanked 332 Times in 328 Posts
    Quote Originally Posted by rainmaster View Post
    Thank you Old Pendant.
    I just assumed the java script stuff would be in the JS files.
    Old_Pedant never touched the JavaScript. He only deleted the HTML to be flewn in.
    The computer is always right. The computer is always right. The computer is always right. Take it from someone who has programmed for over ten years: not once has the computational mechanism of the machine malfunctioned.
    André Behrens, NY Times Software Developer

  • #6
    New to the CF scene
    Join Date
    May 2013
    Posts
    4
    Thanks
    2
    Thanked 0 Times in 0 Posts
    I have another question.
    The tabs for the main menu on top is a green colour.
    I would like to change this colour.

    Could you please point me in the right direction?

    I am not sure which code I should post.
    There are a few files in the JS folder. They are:

    jquery-1.6.js
    cufon-yui.js
    cufon-replace.js
    Vegur_300.font
    PT_Sans_700.font
    PT_Sans_400.font
    tms-0.3.js
    tms_presets.js
    jquery.easing.1.3.js
    atooltip.jquery.js

    I don't know if that helps. Let me know which code I should post.

    Thank you
    Rainmaster

  • #7
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    25,020
    Thanks
    75
    Thanked 4,323 Times in 4,289 Posts
    NOTHING whatsoever to do with JavaScript.

    That is 100% CSS.

    I *think* it is in "style.css" and this line:
    #menu > li > a:hover, #menu > .active > a {background:#5f870e;border-color:#9cba2f}

    Those two colors seem to match what is being used.

    That same color, #5f870e, is used several other places in style.css, so you will probably want to find and change them all.
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.

  • Users who have thanked Old Pedant for this post:

    rainmaster (05-10-2013)

  • #8
    New to the CF scene
    Join Date
    May 2013
    Posts
    4
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Perfect.

    Thank you Old Pendant,

    Your knowledge has helped me.

    Rain


  •  

    Posting Permissions

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