exiles.prx's Profile User Rating: -----

Reputation: 64 Whiz
Group:
Active Members
Active Posts:
224 (0.25 per day)
Joined:
22-November 10
Profile Views:
2,255
Last Active:
User is offline Jan 31 2013 09:50 PM
Currently:
Offline

Previous Fields

Country:
US
OS Preference:
Linux
Favorite Browser:
FireFox
Favorite Processor:
AMD
Favorite Gaming Platform:
PC
Your Car:
Mitsubishi
Dream Kudos:
0
Icon   exiles.prx ..........

Posts I've Made

  1. In Topic: problem with running javascript code on a browser

    Posted 19 Jan 2013

    In order for javascript to run, you must place the script tags within the head section or within the body section of your HTML document like so:

    <html>
    <head>
        <script type="text/javascript">
            $(document).ready(function() {
                alert('head');
            });
        </script>
    </head>
    <body>
        <script type="text/javascript">
            $(document).ready(function() {
                alert('body');
            });
        </script>
    </body>
    </html>
    


    As long as the script tags on located within these two sections, the javascript will run on any browser (unless of course the javascript you write is not supported, ex: touchevents on a desktop).
    You can also include an external script:
    <script type="text/javascript" src="myfile.js"></script>
    
  2. In Topic: using a value from where the mouse pointer is

    Posted 18 Jan 2013

    Maybe something like this:

    $(function(){
        $('.hover').live({mouseenter: function(e) {
            $("#mini_profile").css({'top':e.pageY,'left':e.pageX}).show();
        }, mouseleave: function() {
            $("#mini_profile").fadeOut(500);
        }});
    });
    
  3. In Topic: RGBA transparent background won't stay on in footer.

    Posted 14 Oct 2012

    Since you are floating the heimild and hofundur within the footer element, the footer will collapse. You will either have to set a min-height on the footer or insert a <div style="clear:both"></div> right before your closing footer element.
  4. In Topic: button with background + padding overlapping other text, margin no use

    Posted 13 Oct 2012

    Ok, add the style below and it should push the button away from the text.

    .btn {
         display: inline-block;
    }
    


    You could also wrap the text "This is amazing. Buy now!" in a div tag or span tag. If using span, use display: block to push the button below the text.
  5. In Topic: button with background + padding overlapping other text, margin no use

    Posted 13 Oct 2012

    Sry, not sure why I said the paragraph element, I meant the box with the kitten photo in it (edited above to reflect my brain fart). Do you have a link?

My Information

Member Title:
D.I.C Head
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:
Location:
PA
Years Programming:
4
Programming Languages:
Proficient: Java, C++, SQL, HTML, CSS, PHP, JavaScript
Familiar: C#, VB, XML

Contact Information

E-mail:
Private
Website URL:
Website URL  http://w3innovations.net

Comments

exiles.prx has no profile comments yet. Why not say hello?