dcsimg
www.webdeveloper.com
Results 1 to 10 of 10

Thread: Just Check'n a BBCode Posting (Nothing Special)

  1. #1
    Join Date
    Jan 2017
    Location
    Madison, Wisconsin state
    Posts
    82

    Just Check'n a BBCode Posting (Nothing Special)

    This is pretty much a run to check the Aspect(s) of BBCode "CODE", then "HTML" (as per NogDog):
    HTML Code:
    <html>
        <head>
            <script>
                var imagesArray = [
                    'https://assets.entrepreneur.com/content/3x2/1300/20150827173347-test-google-adwords-campaign-search-engine-internet.jpeg', 'https://yt3.ggpht.com/-DvvzUuiYGos/AAAAAAAAAAI/AAAAAAAAAAA/YoUb-VzIovA/s900-c-k-no-mo-rj-c0xffffff/photo.jpg', 'https://www.google.com/logos/doodles/2015/tu-bav-2015-5651988540817408-hp2x.jpg', 'https://www.google.com/doodle4google/images/splashes/featured.png', 'http://www.onetechstop.net/wp-content/uploads/2016/01/google-logo.jpg',
                    ];
                var usedImages = {};
                var usedImagesCount = 0;
                function displayImage(){
                var num = Math.floor(Math.random() * (imagesArray.length));
                if (!usedImages[num]){
                    document.canvas.src = imagesArray[num];
                    usedImages[num] = true;
                    usedImagesCount++;
                    if (usedImagesCount === imagesArray.length){
                        usedImagesCount = 0;
                        usedImages = {};
                        }
                    }
                else {
                    displayImage();
                    }
                }
            </script>
        </head>
    	
        <body>
            <center>
                <form name="imageForm">
    			
                        <tr align="center">
                            <td>
    			    <br>
    			    <br>
    			    <br>
    			    <br>
    		            <br>
                                <br>
    			    <br>
    			    <br>
    			    <br>
    			    <br>
    			    <img src="http://i.imgur.com/8bp6n2l.jpg" name="canvas" />
    			    <br>
    			    <br>
                            </td>
                        </tr>
    		    <tr>
    		        <td>
    			    <center>
    			        <input onclick="displayImage();" type="text" class="btn1" id = "textbox" size="60" >
    				<br>
    				<br>
    				<br/>
    								
                            </td>
                        </tr>
                    </table>
                </form>
    			
        </body>
    </html>
    Last edited by Douglas_William; 03-20-2017 at 03:57 PM.

  2. #2
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    21,738
    I think [html]...[/html] tags display tabs a bit more nicely?
    "Well done....Consciousness to sarcasm in five seconds!" ~ Terry Pratchett, Night Watch

    How to Ask Questions the Smart Way (not affiliated with this site, but well worth reading)

    My Blog
    cwrBlog: simple, no-database PHP blogging framework

  3. #3
    Join Date
    Jan 2017
    Location
    Madison, Wisconsin state
    Posts
    82
    Yes, NogDog.
    The "html" is a smarter look to it. ...the code used here is from A Resolved Posting here and I was pondering.
    The "Edit" seems to function well enough but there seems to be the dreaded yellow encounter of SWW even though it appears the "Edit" takes place.
    Thank You Very Much for the re-warding Web Developer.Com (Just Love It!)

    ...a few minutes and I'll try again to clean up the loss of the BBCode Display above. Seems nuances are about ...
    or ... it could just be me in getting accustomed to the "Edit" feature itself.

    ...I wonder if the "Edit" is a timed feature from of the Post/Reply ... I got it here but lost it above on the original Post ... just takes time to work through things ... could be a hierarchical Edit though to possibly ...
    Last edited by Douglas_William; 03-20-2017 at 04:39 PM.

  4. #4
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    21,738
    Yeah, the something-went-wrong thing bit me when I tried an example post using your code here. Wish someone would fix that -- or pay me to figure it out.
    "Well done....Consciousness to sarcasm in five seconds!" ~ Terry Pratchett, Night Watch

    How to Ask Questions the Smart Way (not affiliated with this site, but well worth reading)

    My Blog
    cwrBlog: simple, no-database PHP blogging framework

  5. #5
    Join Date
    Jan 2017
    Location
    Madison, Wisconsin state
    Posts
    82
    ... stick-to-it-iveness is a Counsel never to be overlooked and always thoughtfully provoking a better-end ...
    You just never know what is going to happen when you are sticking-to-it and when you least expect it 'chance favors the prepared'.
    - Douglas

  6. #6
    Join Date
    Oct 2013
    Location
    Sheboygan, Wisconsin
    Posts
    1,099
    It sure blows out.
    Html or Code tag.

  7. #7
    Join Date
    Oct 2013
    Location
    Sheboygan, Wisconsin
    Posts
    1,099
    Let us leave the first post alone Please!

  8. #8
    Join Date
    Jan 2017
    Location
    Madison, Wisconsin state
    Posts
    82
    Quote Originally Posted by Train View Post
    Let us leave the first post alone Please!
    okay ... and Thank You's
    - Douglas

    HTML Code:
    <html>
        <head>
            <script>
                var imagesArray = [
                    'https://assets.entrepreneur.com/content/3x2/1300/20150827173347-test-google-adwords-campaign-search-engine-internet.jpeg', 'https://yt3.ggpht.com/-DvvzUuiYGos/AAAAAAAAAAI/AAAAAAAAAAA/YoUb-VzIovA/s900-c-k-no-mo-rj-c0xffffff/photo.jpg', 'https://www.google.com/logos/doodles/2015/tu-bav-2015-5651988540817408-hp2x.jpg', 'https://www.google.com/doodle4google/images/splashes/featured.png', 'http://www.onetechstop.net/wp-content/uploads/2016/01/google-logo.jpg',
                ];
                var usedImages = {};
                var usedImagesCount = 0;
                function displayImage(){
                    var num = Math.floor(Math.random() * (imagesArray.length));
                    if (!usedImages[num]){
                        document.canvas.src = imagesArray[num];
                        usedImages[num] = true;
                        usedImagesCount++;
                        if (usedImagesCount === imagesArray.length){
                            usedImagesCount = 0;
                            usedImages = {};
                            }
                        }
                    else {
                        displayImage();
                        }
                    }
            </script>
        </head>
    	
        <body>
            <center>
                <form name="imageForm">
    			
                        <tr align="center">
                            <td>
                                <br>
                                <br>
                                <br>
                                <br>
                                <br>
                                <br>
                                <br>
                                <br>
                                <br>
                                <br>
                                <img src="http://i.imgur.com/8bp6n2l.jpg" name="canvas" />
                                <br>
                                <br>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <center>
                                    <input onclick="displayImage();" type="text" class="btn1" id = "textbox" size="60" >
                                    <br>
                                    <br>
                                    <br/>
    								
                            </td>
                        </tr>
                    </table>
                </form>
    			
        </body>
    </html>
    Last edited by Douglas_William; 03-20-2017 at 05:41 PM.

  9. #9
    Join Date
    Jan 2017
    Location
    Madison, Wisconsin state
    Posts
    82
    Couldn't resist another shot at getting it to look the way it should ought to look ... maybe tomorrow (but not in an Edit...)
    -Douglas

  10. #10
    Join Date
    Oct 2013
    Location
    Sheboygan, Wisconsin
    Posts
    1,099
    I Can not even paste it in, tried in several forums and kicked it upstairs too.
    Sure hope that helps us out.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles