Flash CS3:网页广告制作入门与实战

3星 · 超过75%的资源 需积分: 9 19 下载量 55 浏览量 更新于2024-07-30 1 收藏 2.99MB PPT 举报
本教程深入探讨了如何利用Adobe Flash CS3进行网页广告制作,旨在帮助初学者快速掌握这项技能,满足日常工作的需求。首先,章节13介绍了Flash网页广告的基础概念,强调了其在网络中的广泛存在和重要作用,特别是在色彩、动态效果和信息传递方面的优势。 Flash广告因其独特的特点而受到青睐,包括: 1. 适合网络传输:Flash广告能够高效地在网络环境中播放,无需牺牲质量,便于跨平台分享。 2. 表现形式多样:Flash提供了丰富的动画和交互设计可能性,能够创建吸引眼球的视觉效果。 3. 交互性:用户可以直接与广告互动,提升用户体验和广告效果。 广告在网页上的常见形式包括: - 嵌入式Banner广告:出现在网页顶部或中部的横幅广告,用来展示品牌形象或推广信息。 - Logo广告:与网站Logo结合的广告,通常位于导航栏或者页眉。 - 浮动广告:随着页面滚动而移动的广告,增加可见度。 - 游标广告:鼠标悬停时显示的额外信息或特惠内容。 - 弹出式广告:在用户点击某个链接或按钮时,会弹出一个新窗口展示广告。 制作过程中,对广告尺寸的标准规范至关重要,不同的位置和形式可能有不同的推荐尺寸。了解这些规格有助于确保广告在不同浏览器和设备上的显示效果。 最后,制作网页广告的一般流程包括: - 需求分析:明确广告目标和受众,确定广告形式。 - 设计构思:构思创意,规划动画和交互元素。 - 创建原型:使用Flash CS3设计广告内容,如动画、按钮和文字。 - 测试优化:在不同浏览器和设备上测试,确保兼容性和性能。 - 发布与维护:将广告嵌入到网页中,并定期更新内容以保持新鲜感。 通过学习和实践这些步骤,你将能够熟练运用Flash CS3制作引人注目的网页广告,提高网站的吸引力和商业转化率。如果你需要进一步的学习资源或实战练习,可以在作者提供的网址http://jiuhong.taobao.com获取更多支持。

import pymysql import time while True: # 连接源数据库 src_conn = pymysql.connect(host='10.43.64.110', port=3306, user='selectuser', password='Xy@123456', database='messpdb') print("连接源数据库成功") # 连接目标数据库 dst_conn = pymysql.connect(host='10.43.144.231', port=3306, user='root', password='123456', database='czjsc') print("连接目标数据库成功") # 创建源游标对象 src_cursor = src_conn.cursor() # 创建目标游标对象 dst_cursor = dst_conn.cursor() # 编写SQL查询语句 #各牌号烟丝总重量 sql1 = 'select mat_id,material_name ,ROUND (sum(quantity) ,1 ) weight ,unit_id from messpdb.silk_stock a left join messpdb.maindata_material b on a.mat_id =b.ctrl where mat_id >0 group by mat_id,material_name, unit_id' sql2 = "select ROUND (sum(quantity) ,1 ) weight ,unit_id from messpdb.silk_stock a where mat_id >0 group by unit_id" sql3 = "select aa.ids,ROUND (aa.c1/bb.c2 ,3 )*100 from (select 1 as ids,count(box_code) c1 from messpdb.silk_stock a where mat_id >0 group by ids) aa, (select 1 as ids,count(box_code) c2 from messpdb.silk_stock a group by ids)bb where aa.ids=bb.ids" # 执行SQL查询语句 src_cursor.execute(sql1) src_cursor.execute(sql2) src_cursor.execute(sql3) # 获取查询结果 results1 = src_cursor.fetchall() results2 = src_cursor.fetchall() results3 = src_cursor.fetchall() print("查询数据库成功") # 更新数据到目标数据库 for row in results1: mat_id = row[0] material_name = row[1] weight = row[2] unit_id = row[3] # 将数据更新到目标数据库中 update_sql = "update cs_list set material_name=%s, weight=%s, unit_id=%s where mat_id=%s" dst_cursor.execute(update_sql, (material_name, weight, unit_id, mat_id)) print("更新数据成功") # 更新数据到目标数据库 for row in results2: weight = row[0] unit_id = row[1] # 将数据更新到目标数据库中 update_sql = "update cs2_list set weight=%s, unit_id=%s where id=1" dst_cursor.execute(update_sql, (weight, unit_id)) for row in results3: ids = row[0] stock_ratio = row[1] # 将数据更新到目标数据库中 update_sql = "update cs3_list set stock_ratio=%s where id=1" dst_cursor.execute(update_sql, stock_ratio) # 提交事务并关闭连接 dst_conn.commit() dst_cursor.close() src_cursor.close() dst_conn.close() src_conn.close() print("断开数据库连接成功") time.sleep(1) 帮我debug

2023-06-02 上传