Jump to content

franklyn

Members
  • Posts

    21
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

franklyn's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. http://yaldex.com/JSFactory_Pro.htm and https://jside.dev.java.net/
  2. Or just post the information to the same page and pass an id variable .
  3. its just toggling the visibility of a div try something like this without the menu links http://www.dynamicdrive.com/dynamicindex1/popit.htm
  4. there is no point to doing this because even if you block their ability to right click on your image they can simply printscreen and crop out your picture.
  5. ah sorry about that i sort of hardcoded the tag into the function just replace this line [code]var stri = "[tag]"+stri1+"[/tag]"[/code] with [code]var stri = "["+tag+"]"+stri1+"[/"+tag+"]"[/code]
  6. you dont have a element named "public"
  7. fixed it .apparently ie doesnt like "obj.style.position='absolute'"
  8. I've tried it with both display and visibility and neither of them work in ie 7.0 .
  9. this method does not work with ie . all the html tags disappear. http://www.phpfreaks.com/forums/index.php/topic,122268.0.html
  10. well i did a fair amount of gooigling and coding and this is what i came up with. it only works in IE for now FF doesn't have support for selections within textareas. [code] <html> <head> <script type="text/javascript"> function AddEmo(tag) { var emo=document.forms["frm1"].elements["post"]; if (document.selection) { emo.focus(); var sel = document.selection.createRange(); sel.text = tag } else if (emo.selectionStart || emo.selectionStart == '0') {     var startPos = emo.selectionStart     var endPos = emo.selectionEnd     emo.value = emo.value.substring(0, startPos)                   + tag                   + emo.value.substring(endPos, emo.value.length) } else {     emo.value += tag;   } } function AddTag(tag) { var txt = ''; if (window.getSelection) { txt = window.getSelection(); } else if (document.getSelection) { txt = document.getSelection(); } else if (document.selection) { txt = document.selection.createRange().text; } var stri1 = txt var stri = "[tag]"+stri1+"[/tag]" AddEmo(stri); } // calling the function </script> </head> <body> <form method="post" name="frm1" id="frm1"> <img src="http://franklyn.ifastnet.com/News/emoticons/smile.png" onclick="AddEmo('::smile::')"> <img src="http://musicbrainz.org/images/mblookup-tag.gif" onclick="AddTag('[img]')"> <br> <textarea name="post" id="post"> </textarea> </form> </body> </html> [/code]
  11. hehe thanks i actually made something like this quite recently for my news posting system.it works fine but i just cant seem to get the div to show html tags in IE :'( http://franklyn.ifastnet.com/News/News.html feel free to test it. leave me a message lol.
  12. make the menu in a php file and then include the php in all your pages. heres a tut on how to do it. http://www.tizag.com/phpT/include.php edit: or what scotmcc said :P lol
  13. ok im still having a few porblems basicaly everything within html tags wont show in internet explorer its really weird all the text from the post shows but when i collapse the post and then expand it again everything within html tags disappears.
  14. here check this out . it took me a while to figure out how it works [code] <html> <head> <script type="text/javascript"> function AddEmo(tag) { var emo=document.forms["frm1"].elements["post"]; if (document.selection) { emo.focus(); var sel = document.selection.createRange(); sel.text = tag } else if (emo.selectionStart || emo.selectionStart == '0') {     var startPos = emo.selectionStart     var endPos = emo.selectionEnd     emo.value = emo.value.substring(0, startPos)                   + tag                   + emo.value.substring(endPos, emo.value.length) } else {     emo.value += tag;   } } // calling the function </script> </head> <body> <form method="post" name="frm1" id="frm1"> <img src="http://franklyn.ifastnet.com/News/emoticons/smile.png" onclick="AddEmo('::smile')"> <input type="text" name="post" id="post"> </form> </body> </html> [/code]
×
×
  • 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.