User Profile

Collapse

Profile Sidebar

Collapse
wbevan20
wbevan20
Last Activity: Oct 17 '12, 09:52 PM
Joined: Feb 21 '12
Location: England
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Line 9 is not required, line 10 should redirect to:

    Code:
    delete.php?fname=blue.jpg
    not list.php

    all else seems ok
    See more | Go to post

    Leave a comment:


  • Works fine on my system, are you sure that JavaScript is enabled in FF?
    See more | Go to post

    Leave a comment:


  • wbevan20
    replied to JavaScript if statement not working
    The problem seems to be that the script was working before the document body was being processed, therefore the call to show the div tags was, essentially ignored because at that stage they were already visible.

    I have made a version of your page/script that should work correctly

    Code:
    <html>
    <head>
    <script type="text/javascript">
    function java_test(){
    var objTrue = document.getElementById("good");
    ...
    See more | Go to post

    Leave a comment:


  • wbevan20
    started a topic Small fading bug

    Small fading bug

    I have the following image fade in/out script which does work fine except for one bug, which is if you switch tabs and back again occasionally the image being faded out will hang in the background, half transparent and half opaque.

    Here is the code that I am working with

    Code:
    var objIn;
    var objOut;
    var imgCont;
    var imgArr = new Array();
    var waitTime = 4; //The amount of time the script waits till
    ...
    See more | Go to post
    Last edited by wbevan20; Apr 3 '12, 10:18 PM. Reason: Additional information

  • wbevan20
    replied to Code not working onmouseover
    Thanks for all your help, it now works perfectly :)
    See more | Go to post

    Leave a comment:


  • wbevan20
    replied to Code not working onmouseover
    That has solved the problem of the dropdown not appearing, however it now won't go away without refreshing the page
    See more | Go to post

    Leave a comment:


  • wbevan20
    replied to output always equals in guessing game
    Agreed, having just looked at the code again, it should've been == instead of just =, it is still working fine with just one = even with an empty input field. Nevertheless the correct way is to have two ==, something I overlooked, my mistake.

    Have now edited it to make the script correct (hopefully lol). :)
    See more | Go to post

    Leave a comment:


  • wbevan20
    replied to output always equals in guessing game
    Here is the fixed code:

    Code:
        <html>
        <head>
        <script language="javascript">
         
        function textNum(){
         var r = Math.floor(Math.random()*10); 
         var A = document.getElementById('enterno').value;
         
         if ( r > A)
         {
         document.getElementById('rem').value = "higher";
         }
         else if (r
    ...
    See more | Go to post
    Last edited by wbevan20; Feb 21 '12, 07:50 PM. Reason: Corrected slight error in code as pointed out by Dormilich

    Leave a comment:


  • wbevan20
    started a topic Code not working onmouseover

    Code not working onmouseover

    Hi

    I have the following code for a dropdown menu that I am creating and the problem is that whilst the variables are being set correctly the for and if statement aren't functioning correctly.

    Instead of allowing the dropdown menu to be activated onmouseover it flashes on/off briefly when the page is loaded and that's it.

    Here is the code that I am working with:

    [CODE=javascript]function gatherItems(c){...
    See more | Go to post
    Last edited by wbevan20; Feb 21 '12, 04:43 PM. Reason: Formatting
No activity results to display
Show More
Working...