473,396 Members | 1,707 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Attaching a print function to a roll over button

29
Hey everyone, and a Happy Wednesday.

I have a coupon on a webpage that includes dynamic data for product category, product, price, sale end date, etc. I would like to put a rollover button below the coupon to print it. I have tried a couple of java functions I found, but not successfully. Is there a PHP or HTML function or script I can attach through a href or something similar.

Thanks for any help.

Robert

p.s. I am using Dreamweaver 8 on a MAC.
Oct 24 '07 #1
4 1115
Atli
5,058 Expert 4TB
Hi Robert.

This sounds like a problem you need to use JavaScript to solve. I'll move this over to the JavaScript forums, where the JavaScript experts will find it.
Oct 24 '07 #2
acoder
16,027 Expert Mod 8TB
I have a coupon on a webpage that includes dynamic data for product category, product, price, sale end date, etc. I would like to put a rollover button below the coupon to print it. I have tried a couple of java functions I found, but not successfully. Is there a PHP or HTML function or script I can attach through a href or something similar.
Do you want to print the whole webpage or just the coupon?

To create a rollover button, you could use CSS or some JavaScript code. Do you want to use images or just colours?

What code do you have so far?
Oct 24 '07 #3
rlm51
29
Thanks for replying so quickly. I will also check the java forum.

The rollover button I have no problem with it, I use similar buttons thoughout the website.

If I use the browser "print", it just prints the coupon without the browser shell. Can i somehow execute a browser print from within the pages code, attaching it to the rollover image? That's what I wish to accomplish.

Thanks

Robert
Oct 24 '07 #4
acoder
16,027 Expert Mod 8TB
Thanks for replying so quickly. I will also check the java forum.
I would advise you not to. They have nothing to do with JavaScript and they'll just send it back here!
If I use the browser "print", it just prints the coupon without the browser shell. Can i somehow execute a browser print from within the pages code, attaching it to the rollover image? That's what I wish to accomplish.
JavaScript only runs within the browser, so window.print() basically does the same thing as the print option in the browser.
Oct 24 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Scott Navarre | last post by:
Hello, I have 2 frames. The top one is the control frame and the bottom one is the display. I have a roll-over button in the top frame that I want to use to do a print() for the bottom frame....
3
by: Craig | last post by:
First of all, this one is driving me crazy, so thanks in advance for any help!! I've got a javascript function in a parent document that generates an HTML document on the fly when a button is...
2
by: Asad | last post by:
I have a main window that creates a new window called printWin (which contains the printable format of the page). From the main window I embed a javascript in the printWin window that calls the...
13
by: Maroon | last post by:
Hi, I want to write a standard java user defined function, like this example:- select db_fun("roll"), roll from student; **db_fun() will work for all tables of the all databse here db_fun is...
3
by: Thomas Scheiderich | last post by:
I am curious as to why ASP.NET returns values a different way from VB or VB.net (or can you use both). In my one book I have it returning using a return statement ...
2
by: john.lehmann | last post by:
Attacked is a piece of code which first hits the login page successfully and receives back login cookies. But then when I attempt to hit a page which is restricted to logged in users only, I fail....
3
by: oopaevah | last post by:
I have written some dom code to create a list of divs, each with it's own id. I want to set the onmouseover and onmouseout events to highlight the div when the mouse is over it. However I cannot...
10
by: jon | last post by:
I'm trying to use a hidden iframe to print the contents of one div seamlessly. Currently I can create the hidden iframe, copy the contents of the div to the iframe, and print it. I even have a...
1
by: ARC | last post by:
I have some functions that will allow a user to attach to a different back-end database. I added this functionality to the program Ribbon in a custom Access 2007 app. I have 2 ways to attach to a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.