Website Babble Webmaster Forums  
  #1 (permalink)  
Old 01-25-2008, 07:43 PM
Daniel_j's Avatar
Regular Babbler
 
Join Date: Dec 2007
Location: London, England
Posts: 80
Daniel_j has a few positive reputation points
Default Copy & Paste script's

Hey Everyone



I have a question, Im trying to create one of them boxes that allows you to copy and paste the contents of the box straight to the clipboard so I can distribute my banners on my page and im having a nightmare with it

Im not sure if im using the correct scripts or if the scripts are correct (my html is very basic nearing none at all) im using Dreamweaver 8 I have a code for the box and button but when I try to preveiw it it says error on page. Im just wondering if its got something to do with the actual script in the page.

If you can, any help would be grand, or if you know where I can get a good script from, that works (as I have tried about 6 already) this would also be of help.

Mnay thanks
Dan
Reply With Quote
  #2 (permalink)  
Old 01-25-2008, 08:45 PM
Junior Babbler
 
Join Date: Jan 2008
Posts: 2
brendan2b has a few positive reputation points
Default Post Code

Hey post your code that you have been trying to use. I just want to see if I can help you.
Reply With Quote
  #3 (permalink)  
Old 01-25-2008, 10:13 PM
Daniel_j's Avatar
Regular Babbler
 
Join Date: Dec 2007
Location: London, England
Posts: 80
Daniel_j has a few positive reputation points
Default

Here is the script im trying to use, its probably something real simple but I cant work it out, it has the content in the box for my banner thats hosted on Photobucket:


</SCRIPT>
<FORM name=bannerform>
<textarea name="banner1" cols="60" rows="5"><a href="http://www.lovegaragemusic.com"><img

src="http://i262.photobucket.com/albums/ii104/love-garage-music/banner.gif" alt=""

width="468" height="60" longdesc="http://www.lovegaragemusic.com" border="0"/></a>
<a href="http://www.lovegaragemusic.com">www.lovegaragemusic.com</a><p><p><p></p>
</textarea>
</form>
<input type=button value="Copy to Clipboard" onClick="HighlightAll('bannerform.banner1')">

<BR><BR>



Thanks
Dan
Reply With Quote
  #4 (permalink)  
Old 01-27-2008, 08:26 AM
Rob's Avatar
Rob Rob is offline
Supreme Babbler
 
Join Date: Nov 2007
Location: United Kingdom
Posts: 618
Rob has more than the average amount of reputation points
Send a message via ICQ to Rob Send a message via AIM to Rob Send a message via MSN to Rob Send a message via Yahoo to Rob Send a message via Skype™ to Rob
Default

Ok I think I know what you mean, all you have to do is put in this code and replace 'text here' with your desired content or image etc.

Code:
<textarea name="textarea" id="textarea" cols="45" rows="5">text here</textarea>
Also if you want to change the width and the height etc, just alter how many rows, columns you want and it will automatically resize the box for you.
__________________
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -6. The time now is 05:44 AM.



WB Sponsors

Profit Lance Review

Work At Home Jobs

Houston Web Design



 Subscribe to the Website Babble Feeds

2 Create a Website Homepage | 2 Create a Website Blog


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0