snypeNET's Profile User Rating: -----

Reputation: 1 Apprentice
Group:
New Members
Active Posts:
12 (0.02 per day)
Joined:
06-October 12
Profile Views:
1,447
Last Active:
User is offline Apr 28 2013 08:49 PM
Currently:
Offline

Previous Fields

Country:
US
OS Preference:
Windows
Favorite Browser:
Chrome
Favorite Processor:
AMD
Favorite Gaming Platform:
PC
Your Car:
Honda
Dream Kudos:
0
Icon   snypeNET has not set their status

Posts I've Made

  1. In Topic: A little challenge: "Reverse a string"

    Posted 12 Jan 2013

    View Postjjl, on 12 January 2013 - 05:16 PM, said:

    Quote

    I believe this works. I didn't know if string member functions are allowed. But here is my solution. It works!


    The problem states that you are required NOT to use arrays, pointers, or C strings. Well you are using C++ strings so I think your not very creative solution passes.


    I don't think it's a question of creativity but does it solve the problem. And my solution solves the problem.
  2. In Topic: Animate Fade In (JQuery)

    Posted 12 Jan 2013

    View Postteamsilvamma, on 12 January 2013 - 01:26 PM, said:

    View PostsnypeNET, on 12 January 2013 - 03:09 PM, said:

    No problem. I'm glad to hear you figured it out. Javascript (jQuery) can be irritating at times when you spend hours and get no where. I often have to take a break and get a fresh look at the code. Usually I misspelled an id or something stupid like that. If you need any help in the future let me know.


    Thanks. I'm really good html, css, asp, Ajax, and more but jQuery is my new focus. It all comes easy with some little guidance but you're right, sometimes just a little semicolon can throw you around.

    It just too bad that here, in a forum designed to learn, there are so many people showing off and basically saying "I know my stuff but I'm not sharing"

    They shouldn't be here. They should be in a contest forum.

    Ps. I don't think the guy above really knows how to explain things either. He was telling me I needed a function. I was positive when I told him that the function that makes the animation work is included in the library or plugin.

    But oh well.

    Anyway, I'm sure I'll get lost again so I'll take your offer soon. Thanks again. And if you are ever in PA or Brazil, msg me, I'll give you free MMA lessons ;-)


    I think he just didn't see that you did have the ready event in your code and assumed you didn't know you needed which lead to the insuts and stuff.

    I am pretty good with html,css, javascript/jQuery, c#, c/c++, java, asp.net, vb.net and I am starting to get into classic asp and php. So if need any help in the other languages let me know as well.

    Yea I will msg you if I'm ever in the area.
  3. In Topic: JS and CSS Doesn't work

    Posted 12 Jan 2013

    View Postandrewsw, on 12 January 2013 - 11:00 AM, said:

    I see you have the same code at the bottom already, so just delete it from the top of the document.


    I didn't see it at the bottom. Yea just delete the script section from the top.
  4. In Topic: Animate Fade In (JQuery)

    Posted 12 Jan 2013

    No problem. I'm glad to hear you figured it out. Javascript (jQuery) can be irritating at times when you spend hours and get no where. I often have to take a break and get a fresh look at the code. Usually I misspelled an id or something stupid like that. If you need any help in the future let me know.
  5. In Topic: Animate Fade In (JQuery)

    Posted 12 Jan 2013

    View Postteamsilvamma, on 11 January 2013 - 08:18 AM, said:

    I'm tired of staring at coded and not seeing the problem. So I need a colleague to throw me a bone. I'm building this site for my training school and all I want is the logo (which it has position:absolute properties and its own <div> to fade in when the page loads.

    Can you please help me out? here's the code.

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html lang="en-US" xmlns="http://www.w3.org/1999/xhtml" dir="ltr">
    <head>
    	<title>HBGMMA</title>
        
        <meta name="description" content=" "/>
        <meta name="keywords" content=" "/>
        <meta name="author" content="LOTUS Marketing Solutions"/>
        <meta http-equiv="Content-Language" content="en"/>
        <meta name="revisit-after" content="7 days"/>
        <meta name="robots" content="index, follow"/>
        <meta name="Rating" content="General"/>
        <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
    	<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
    	
    	<link rel="stylesheet" href="css/style.css" type="text/css"/>
    
                <!--[if IE 6]>
    		                <link rel="stylesheet" href="css/ie6.css" type="text/css" media="all" />
    	        <![endif]-->
        <script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
        <script type="text/javascript" src="js/jquery.jcarousel.js"></script>
        <script type="text/javascript" src="js/jquery-func.js"></script>
        <script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
    
    </head>
    <body>
    	<div id="background">
    		<div id="header">
    			<div>
                    <div>
    					<a href="index.html" class="logo"><img src="images/HBGMMA.png" alt=""/></a>
    					<ul>
    						<li class="selected">
    							<a href="index.html" id="menu1">welcome</a>
    						</li>
    						<li>
    							<a href="programs.html" id="menu2">programs</a>
    						</li>
    						<li>
    							<a href="schedules.html" id="menu3">schedules</a>
    						</li>
    						<li>
    							<a href="about.html" id="menu4">about us</a>
    						</li>
    						<li>
    							<a href="contact.html" id="menu5">contact us</a>
    						</li>
    					</ul>
    				</div>
    			</div>
    		</div>
    		<div id="body">
    			<div>
                    
    				<div> 
    					<div class="featured">
    						<img src="images/featuredlogo2.png" alt=""/>                        
    					<div class="animated">
                            <img id="logo" src="images/HBGMMALOGO.png" alt="" />
                        
                                <script type="text/javascript">
                                    $('#animated').ready(function () {
                                        $('#logo').fadeIn('slow', function () {
                                            //$("animated").fadeIn(500);
                                        });
                                        //return false;
                                    });
                                </script>
                        </div>
                        </div>
                        
    					<div class="section">
    						<div>
    							<h3>Welcome to Harrisburg MMA</h3>
    							<div>
    								<p>
    									At Harrisburg MMA, we have a full staff trained to meet your athletic needs whatever they may be. Whether you are interested in competing in 
                                        combat sports, learning self-defense, improving your martial art discipline, or simply getting in the best shape of your life; we can accomodate
                                         you and we are extremely flexible. <a href="programs.html" class="more" style="float:right">Find Out More</a>
    								</p>
    							</div>
    						</div>
    						<div>
    							<h3>Combatives</h3>
    							<div>
    								<a href="programs.html" class="figure"><img src="images/mma4.jpeg" alt="" width="176px" height="130px"/></a>
    								<span><a href="programs.html">MMA, BJJ, Boxing, Muay Thai, and more</a></span>
    							</div>
    						</div>
    						<div>
    							<h3>Non-Combatives</h3>
    							<div>
    								<a href="programs.html" class="figure"><img src="images/workout.jpg" alt="" width="176px" height="130px"/></a>
    								<span><a href="programs.html">Self-Defense, Weight-Loss, Children, and more</a></span>
    							</div>
    						</div>
    					</div>
    				</div>
    
                    
    			</div>
    		</div>
    		<div id="footer">
    			<div>
                <table>
    				<tr>
                        <td class="facebook">
                            <a href="http://www.facebook.com/hbg.mma.5?fref=ts">Follow us on </a>
                        </td>
                    </tr>
                </table>   
                <span>345 Carlisle St. 4th Floor. Harrisburg, PA 17111 - 717 810 9904 - hbgmma@yahoo.com</span>
                    <br /><br />
    	        <p>@ copyright 2012. all rights reserved. Website created by <a href="http://www.lotusmarketingsolutions.com">LOTUS Marketing Solutions</a></p>
    			</div>
    		</div>
    	</div>
    </body>
    </html>
    


    I included the entire css just in case you want to run it in your comps, although you don't have the pics but here it is anyway

    thanks


    Your code:
     <script type="text/javascript">
                                    $('#animated').ready(function () {
                                        $('#logo').fadeIn('slow', function () {
                                            //$("animated").fadeIn(500);
                                        });
                                        //return false;
                                    });
                                </script>
    
    


    could probably be replaced with a load event instead of the ready event. And I would place the load code inside a document ready event to make sure it runs because I don't believe it will fire otherwise.

    Also you set animated as a class and the selector of a class is a period '.' not '#'

    # = id
    . = class

    Therefore you would have:
    $(document).ready(function(){
    $('.animated').load(function () {
        $('#logo').fadeIn('slow', function () {});
    });
    });
    
    


    In the header of your webpage after you include the jQuery library.

    Also you don't need both libraries. I would replace

    <script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
    
    


    with

    <script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
    
    


    Therefore you are pulling down the latest and greatest and you are including the library before the plugins.

    Does that help at all?

My Information

Member Title:
New D.I.C Head
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:
Years Programming:
5
Programming Languages:
C#,VB.NET,C/C++,Java,Javascript,jQuery,VBScript, Batch, HTML

Contact Information

E-mail:
Click here to e-mail me
Yahoo:
Yahoo  u_mccanna
Skype:
Skype  snype360
LinkedIn:
www.linkedin.com/in/umccanna

Comments

snypeNET has no profile comments yet. Why not say hello?