View Single Post
Join Date: Aug 2008
Posts: 954
Reputation: essential will become famous soon enough essential will become famous soon enough 
Solved Threads: 131
Featured Poster
essential's Avatar
essential essential is offline Offline
Posting Shark

Re: populating text field in firefox not working

 
0
  #7
Sep 15th, 2008
This should do it!
If you still need anythin', just let me know. Good day...

  1. <html>
  2. <head>
  3. <title><!--Sample--></title>
  1. <style type="text/css">
  2. <!--
  3. a { text-decoration: none; }
  4. form input { border: none; }
  5. #screen
  6. { position: fixed;
  7. left: 10px;
  8. top: 10px;
  9. text-align: center;
  10. font-weight: bold;
  11.  
  12. /* You may change the width and height if it is necessary.
  13. */
  14. width: 200px;
  15. height: 40px;
  16. background-color: #C0C0C0;
  17. color: #A6A6A6;
  18. }
  19. -->
  20. </style>

  1. <script type="text/javascript">
  2. <!--
  3. function load()
  4. { thisLink = document.getElementById('link1');
  5. thisLink.addEventListener('click', function displayWindow() {
  6. container = document.sellSheet.sellitsheet; screen = document.getElementsByTagName('div')[0];
  7. screen.id = 'screen'; screen.firstChild.nodeValue = thisLink.title;
  8. container.value = thisLink.title;
  9. }, false );
  10. }
  11. //-->
  12. </script>
  1. </head>
  2. <body onload="load();">
  3. <p align="center">
  4. <div>&nbsp;</div><br /><br />
  5. <a id="link1" href="#" alt="" title="SLICE 2100 (Commercial)">SLICE 2100 (Commercial)</a><br />
  6. <form name="sellSheet" action="#" onsubmit="return false;">
  7. <input type="text" name="sellitsheet" size="20" value="" />
  8. </form>
  9. </p>
  10.  
  11. </body>
  12. </html>
Reply With Quote