Jump to content

FrOzeN

Members
  • Posts

    70
  • Joined

  • Last visited

    Never

Everything posted by FrOzeN

  1. Yeah, There's a few different ways you can call the flash movie depending on where you want it to show (page, frame, new [popup] window): document.window.location.href = "flash_move_location.swf"; -or- frames['name_of_frame'].location.href = "flash_move_location.swf"; -or- document.window.open ("flash_move_location.swf", "mywindow", width="500", height="500"); ([url=http://www.devguru.com/Technologies/ecmaScript/quickref/win_open.html]Reference how to use the window.open() function.[/url]) I've only just started JavaScript recently, and basing my knowledge off what I've seen done before, and googling for certain functions. The best place to start is at [url=http://www.w3schools.com/js/default.asp]w3schools[/url], then I find searching for something in [url=http://en.wikipedia.org/wiki/JavaScript]wiki[/url] to get a basic knowledge of what it is, and at the bottom of the page (in wiki) it contains external links with some tutorials which are generally very good. :)
  2. Yes. Example: [quote][size=9pt][font=Courier New]<html> <head>   <title>page title</title>   <sc[b][/b]ript type="text/javascript">     function example($number) {       alert("The number is " + $number + ".");     }   </script> </head> <body> <img src="some_image.jpg" alt="Some Image" onMouseOver="javascript:example('10');" /> </body> </html>[/font][/size][/quote]
  3. The html code is what shows the checkbox's on your page. The javascript contains the functions which allows you to create a "Select All" button on your webpage. You would place the javascript code inside <scr[b][/b]ipt type="text/javascript"></script> tags inside your <head></head> tags. Then further down the page in your form you would add the html he posted. Also, with your form make sure it has and [b]id[/b] attribute, and replace "yourid" with the id attribute of your form. If you don't understand what I mean, post your html file and I'll/others here can add it for you.
  4. JavaScript is client-side and your browser executes/runs the code. So yes, you'll be able to use it.
  5. I've noticed on some forums, with online users it has a specific one for "GoogleBot". I was thinking of implementing something like this, but maybe to also include some other main ones for yahoo and msn. I figured that this can be determined with $_SERVER["HTTP_AGENT"], but that can also be easily spoofed. My other thought is that maybe they have a range of IP's which could be matched against on top of $_SERVER["HTTP_AGENT"] for a better/more assumed verification of it being real. Any suggests for creating something like this? Or anyone know a little of IP's (or just ranges) which these bots use, and what bots they're from?
  6. Could anyone provide a good definition of what AJAX exactly is, and does? I'm trying to grasp more concepts of web design so I can make my pages more interactive. Also, when you click "Preview" here it generates the preview without reloading the page. Is that done via AJAX? Currently, the only way I know of updating the page without reloading it is via hidden iFrames, a quick example I made: [ [url=http://www.clananthrax.net/test/example.php]Page[/url] ] - [ [url=http://www.clananthrax.net/test/example.phps]Source[/url] ] Note: I only used php in the example so I didn't have to make multiple pages, it isn't necessary for the concept.
  7. [quote author=yana link=topic=108838.msg438661#msg438661 date=1158841530] I create all my graphics in photo shop and save them for web as JPG at MAX resolution. What alternate solution can I use to reduce the image size??? [/quote] In photoshop, check the "Preview" box then select push the bar to max resolution. Then move it down 1 by 1 watching the image until you see your previewed image change. Then move it back 1 again so it regains the quality loss you just noticed. I find that sometimes I can get it down to 5-6 without any noticeable loss of quality, yet the filesize becomes much lower. :)
  8. What I'm considering adding to a website I'm going to develop is a Private Messaging System for registered members to communicate directly with one another via the board, and be able to store about 50 messages. I've found this handy on other forums I've used before when wanting to contact Moderators/Members about stuff that doesn't require a topic. Though, this can quite easily be abused by a member advertising with it, sending offensive material, flaming, spamming, etc. I noticed on these forums they've been disabled/limited for Admin/Moderator use only. Any suggestions regarding ways to prevent such activities occurring without having to disable it from them? The only thing I can think of is setting permission for Administrators to read the messages, though, this does inflict with it being a "Private" system, even though I've clearly point out that it's still monitored. Also, does anyone run they're own forum and have stories regarding how this has worked for then? Thanks.
  9. FrOzeN

    b or strong

    Heh, if google treats that as a more important word and ignores the CSS downgrading it, then theres a small loophole to emphasise your important words. Nice. :)
  10. You could have a hidden iframe (say index.php?page=1000&page-still-open=true) in the page which refreshes itself every 1 or 2 minutes, and that information could be manipulated server-side to grasp a rough idea of what page they're currently on and how long they've been viewing it (based on the count of refreshes recorded).
  11. I *think* he means go through them pixel by pixel and adding one to a counter for every (x, y) pixel that corresponds to the other image. Then produce a percentage of pixels that match to the total of pixels in the image. I haven't worked with images in php yet, so I'm not sure the code you would use, but the above would be the concept.
  12. I generally create the page in HTML with tables, then format everything using CSS.
  13. Is there a CSS property to make text invisible or completely transparent? (Note the background I'm using is a fixed image, so making the text the same colour as it is useless.) [code]<html> <head>   <title>example</title>   <style type="text/css">     .example {       filter:alpha(opacity=0);       -moz-opacity:0;       opacity:0;     }   </style> </head> <body> This text should be visible.<br /> <span class="example">This text should be invisible.</span> </body> </html>[/code] The above works fine in firefox but not in Internet Explorer. Anyone know what I need to change to get it to work in both? [EDIT] Nvm, I found the display:none and visibility:hidden properties.
  14. Ah ok, maybe you should redirect to a page saying notifying the user of why they can't post the SCRIPT tag rather than just refusing the connection?
  15. Inshort, when posting the line "[b]<sc[b][/b]ript type="text/javascript">[/b]" firefox returns the error: "The connection to the server was reset while the page was loading." I simple avoided it in this post by using a BBCode trick, (placing "[[b][/b]b][/[b][/b]b]" within the line). Found error when making topic: http://www.phpfreaks.com/forums/index.php/topic,108913.msg439155.html
  16. Thanks, that's what I was looking for. Sorry about the post, my router is setup to cut me off at 10:30 pm weeknights so I don't spend all night on the net, and I rushed to post it before it cut me off. When I clicked post some error occurred when posting '<' and '>' so I quickly changed them to brackets figuring you guys could make sense of what I meant and accidently duped half the post when copying + pasting in a rush. [EDIT] I just cleaned up the post and found the bug that stopped it from posting correctly the first time. When trying to post the line below it firefox returns the error, "The connection to the server was reset while the page was loading." <sc[b][/b]ript type="text/javascript"> Note: I've used a BBCode trick to avoid the error by adding "[[b][/b]b][/[b][/b]b]" within the line.
  17. I'm trying to modify some properties with JavaScript by using there class name. Can anyone tell me what's wrong with the following example, and/or an alternative to do it correctly? [code]<html> <head> <title></title> </head> <body> <span class="classname">Test</span> (script type="text/javascript">   document.getElementByClass("classname").innerHTML = "Example worked!"; </script> </body> </html>[/code] Thanks.
  18. When I usually code webpages I just use notepad as I find it easy, simple, and no other features that I don't need. But one thing it lacks which I find really useful is colour code highlighting. No more advanced than when you view a .phps page on the net. Does anyone know of an [b]extremely basic[/b] php editor that doesn't have much other crap, I'm really just looking for a notepad with colour code highlighting. Thanks. :) Note: I'm not looking for the highlighting to pick up errors either, just to highlight functions, html tags, etc.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.