Thread Rating:
  • 453 Vote(s) - 2.68 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Page 4: Images and Links
06-16-2011, 01:41 PM, (This post was last modified: 06-23-2011, 03:53 PM by ashimo.)
#1
Page 4: Images and Links
Application... Making images and links

Next, let’s display an image that uses special text styles, and enable a transition to another Web page through a link.

Create a new project to be used for Try 1-2

Using the same procedure as that used for Try1-1, create a “Try1-2” project. From the IDE “File” menu, select “New Project.” In the “New Project” dialog box, select “Applet Project” (1), input “Try1-2” (2), specify c:\Curl\lesson\Try1\02_image_link in the “Directory” field (3), set the "API Version" to "6.0," and then click “OK” (5).



Displaying the Curl logo on the screen

1. Copy the curl_logo.gif file from the c:\Curl\Try1\02_image_link folder to the c:\Curl\lesson\Try1\02_image_link folder.



2. After the declarations, copy the following.

Code:
Curl Logo Image
{image source = {url curl_logo.gif}}

To save yourself from inputting this manually, you can copy and paste the sample data from c:\Curl\Try1\02 image_link\start.curl. Figure 1-23 shows where this appears in the program.



3. Save and then execute the program. Check that the Curl logo is displayed on the screen.



Creating a link to take us to the Curl home page

1. Next, let's create a hypertext link. Add the following code to the program. Figure 1-25 shows where this appears in the program.

Code:
||Link to Curl home page
{link href = {url http://www.curlap.com/}, Curl home page is here}




2. Save and then execute the program. Check that, when you click the link, the Curl home page is displayed.






Messages In This Thread
Page 4: Images and Links - by ashimo - 06-16-2011, 01:41 PM

Possibly Related Threads...
Thread Author Replies Views Last Post
  Page 2: Displaying Text and Text Styles ashimo 1 4,590 01-13-2014, 04:01 PM
Last Post: faris
  Page 6: Summary and Extra Practice ashimo 0 3,833 06-20-2011, 05:11 PM
Last Post: ashimo
  Page 5: Examining the Program Structure of Images and Links ashimo 0 3,880 06-16-2011, 01:50 PM
Last Post: ashimo
  Page 3: Examining the Program Structure of Text Display ashimo 0 3,913 06-16-2011, 01:38 PM
Last Post: ashimo
  Page 1: Creating a Project ashimo 0 3,540 06-16-2011, 01:14 PM
Last Post: ashimo
Forum Jump:


Users browsing this thread:
2 Guest(s)

MyBB SQL Error

MyBB has experienced an internal SQL error and cannot continue.

SQL Error:
1017 - Can't find file: 'mybb_threadviews' (errno: 2)
Query:
INSERT INTO mybb_threadviews (tid) VALUES('45')